MSVC: add /D_USE_MATH_DEFINES.

Turns out M_PI and friends aren't from the C standard, but rather
they are a POSIX extension. This definition is necessary to enable
them on MSVC.
This commit is contained in:
whitequark 2016-05-18 09:35:32 +00:00
parent fc79642788
commit 56e2d451f4

View File

@ -41,8 +41,9 @@ if(WIN32)
-DWIN32 -DWIN32
-DWIN32_LEAN_AND_MEAN -DWIN32_LEAN_AND_MEAN
-DUNICODE -DUNICODE
-D_UNICODE
-DNOMINMAX -DNOMINMAX
-D_UNICODE) -D_USE_MATH_DEFINES)
endif() endif()
if(MSVC) if(MSVC)