Win32 Macro fixes

This commit is contained in:
Jack Andersen 2015-08-30 17:29:37 -10:00 committed by Phillip Stephens
parent 9b6fea36e3
commit e52e9f8dc4
4 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,12 @@
# ATDNA Build #
###############
# Force this binary to Release flags (to make MSVC happy)
if(MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
endif()
# Find dependencies
include(FindLLVM.cmake)
if(NOT LLVM_FOUND)

View File

@ -8,7 +8,9 @@
*/
#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
#endif

View File

@ -2,7 +2,9 @@
#define ISTREAMREADER_HPP
#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
#endif

View File

@ -2,7 +2,9 @@
#define ISTREAMWRITER_HPP
#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
#endif