Skip to content
Permalink
Browse files

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

  • Loading branch information...
adrido authored and nerzhul committed Aug 24, 2017
1 parent caf61f3 commit 017840f9b17706d252c0caaf5f32843e1e07a114
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/CMakeLists.txt
@@ -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()

0 comments on commit 017840f

Please sign in to comment.
You can’t perform that action at this time.