mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 01:47:41 +00:00
cmake: get rid of the duplicated _USE_MATH_DEFINES
- define _USE_MATH_DEFINES in SDL_stdinc.h only - define _USE_MATH_DEFINES if not defined already
This commit is contained in:
parent
ed8637f437
commit
68b30d24e0
2 changed files with 1 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
|||
# include <ctype.h>
|
||||
#endif
|
||||
#ifdef HAVE_MATH_H
|
||||
# if defined(_MSC_VER)
|
||||
# if defined(_MSC_VER) && !defined(_USE_MATH_DEFINES)
|
||||
/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
|
||||
Visual Studio. See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
|
||||
for more information.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue