summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authoradrido <robots_only_adrido@gmx.com>2017-08-24 17:13:53 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-08-24 17:13:53 +0200
commit017840f9b17706d252c0caaf5f32843e1e07a114 (patch)
treefd8374d362cb187ab603fd071d18a11caa1c5b39 /src/CMakeLists.txt
parentcaf61f3b4d669ab2baffbfed9bd9160bc74fbaef (diff)
downloadminetest-017840f9b17706d252c0caaf5f32843e1e07a114.tar.gz
minetest-017840f9b17706d252c0caaf5f32843e1e07a114.tar.bz2
minetest-017840f9b17706d252c0caaf5f32843e1e07a114.zip
Dont define min/max macros in minwindef.h (#6308)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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()