1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Remove mathconstants.h and use the correct way to get M_PI in MSVC. (#5072)

This commit is contained in:
red-001 2017-01-20 22:19:41 +00:00 committed by Loïc Blot
parent efa54f9c46
commit 0dada51a55
12 changed files with 2 additions and 17 deletions

View file

@ -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()