Dont define min/max macros in minwindef.h (#6308)

master
adrido 2017-08-24 17:13:53 +02:00 committed by Loïc Blot
parent caf61f3b4d
commit 017840f9b1
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ if(WIN32)
add_definitions ( /D "_CRT_SECURE_NO_DEPRECATE" /W1 )
# Get M_PI to work
add_definitions(/D "_USE_MATH_DEFINES")
# Dont define min/max macros in minwindef.h
add_definitions(/D "NOMINMAX")
else() # Probably MinGW = GCC
set(PLATFORM_LIBS "")
endif()