mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-27 11:25:24 +01:00
Remove mathconstants.h and use the correct way to get M_PI in MSVC. (#5072)
This commit is contained in:
@@ -284,6 +284,8 @@ if(WIN32)
|
||||
set(PLATFORM_LIBS dbghelp.lib ${PLATFORM_LIBS})
|
||||
# Surpress some useless warnings
|
||||
add_definitions ( /D "_CRT_SECURE_NO_DEPRECATE" /W1 )
|
||||
# Get M_PI to work
|
||||
add_definitions(/D "_USE_MATH_DEFINES")
|
||||
else() # Probably MinGW = GCC
|
||||
set(PLATFORM_LIBS "")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user