projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf61f3
)
Dont define min/max macros in minwindef.h (#6308)
author
adrido
<robots_only_adrido@gmx.com>
Thu, 24 Aug 2017 15:13:53 +0000
(17:13 +0200)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Thu, 24 Aug 2017 15:13:53 +0000
(17:13 +0200)
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index 4e76f3b00bc9ecb7afa7bd8400a0735a74894507..4fc6bca25bbe5c5ab21871dc735a8b2d9b67d174 100644
(file)
--- 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()