diff options
author | adrido <robots_only_adrido@gmx.com> | 2017-08-24 17:13:53 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-24 17:13:53 +0200 |
commit | 017840f9b17706d252c0caaf5f32843e1e07a114 (patch) | |
tree | fd8374d362cb187ab603fd071d18a11caa1c5b39 /src/CMakeLists.txt | |
parent | caf61f3b4d669ab2baffbfed9bd9160bc74fbaef (diff) | |
download | minetest-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.txt | 2 |
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() |