Browse Source

Guard against _USE_MATH_DEFINES redefinition

Knightly 2 years ago
parent
commit
a23d1af0ac
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/SDL_stdinc.h

+ 3 - 1
include/SDL_stdinc.h

@@ -85,7 +85,9 @@
    Visual Studio.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
    for more information.
 */
-#  define _USE_MATH_DEFINES
+#  ifndef _USE_MATH_DEFINES
+#    define _USE_MATH_DEFINES
+#  endif
 # endif
 # include <math.h>
 #endif