From: adrido Date: Thu, 24 Aug 2017 15:13:53 +0000 (+0200) Subject: Dont define min/max macros in minwindef.h (#6308) X-Git-Tag: 5.0.0~899 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=017840f9b17706d252c0caaf5f32843e1e07a114;p=oweals%2Fminetest.git Dont define min/max macros in minwindef.h (#6308) --- 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()