From 017840f9b17706d252c0caaf5f32843e1e07a114 Mon Sep 17 00:00:00 2001 From: adrido Date: Thu, 24 Aug 2017 17:13:53 +0200 Subject: Dont define min/max macros in minwindef.h (#6308) --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4e76f3b00..4fc6bca25 100644 --- a/src/CMakeLists.txt +++ b/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() -- cgit v1.2.3