Dont define min/max macros in minwindef.h (#6308)
authoradrido <robots_only_adrido@gmx.com>
Thu, 24 Aug 2017 15:13:53 +0000 (17:13 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 24 Aug 2017 15:13:53 +0000 (17:13 +0200)
src/CMakeLists.txt

index 4e76f3b00bc9ecb7afa7bd8400a0735a74894507..4fc6bca25bbe5c5ab21871dc735a8b2d9b67d174 100644 (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()