mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Dont define min/max macros in minwindef.h (#6308)
This commit is contained in:
parent
caf61f3b4d
commit
017840f9b1
@ -263,6 +263,8 @@ if(WIN32)
|
|||||||
add_definitions ( /D "_CRT_SECURE_NO_DEPRECATE" /W1 )
|
add_definitions ( /D "_CRT_SECURE_NO_DEPRECATE" /W1 )
|
||||||
# Get M_PI to work
|
# Get M_PI to work
|
||||||
add_definitions(/D "_USE_MATH_DEFINES")
|
add_definitions(/D "_USE_MATH_DEFINES")
|
||||||
|
# Dont define min/max macros in minwindef.h
|
||||||
|
add_definitions(/D "NOMINMAX")
|
||||||
else() # Probably MinGW = GCC
|
else() # Probably MinGW = GCC
|
||||||
set(PLATFORM_LIBS "")
|
set(PLATFORM_LIBS "")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user