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:
parent
efa54f9c46
commit
0dada51a55
12 changed files with 2 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue