Skip to content

Commit

Permalink
Dont define min/max macros in minwindef.h (#6308)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrido authored and nerzhul committed Aug 24, 2017
1 parent caf61f3 commit 017840f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 017840f

Please sign in to comment.