mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:05:28 +00:00
Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!)
Fixes https://github.com/libsdl-org/SDL/issues/3790
This commit is contained in:
parent
d542f43b2a
commit
c6e8961979
|
@ -80,9 +80,9 @@
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_MATH_H
|
#ifdef HAVE_MATH_H
|
||||||
# if defined(__WINRT__)
|
# if defined(_MSC_VER)
|
||||||
/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
|
/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
|
||||||
WinRT. See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
|
Visual Studio. See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
|
||||||
for more information.
|
for more information.
|
||||||
*/
|
*/
|
||||||
# define _USE_MATH_DEFINES
|
# define _USE_MATH_DEFINES
|
||||||
|
|
Loading…
Reference in a new issue