Commit a23d1af0ac13f4ddd408a75b7e82b58ec307beb0

Knightly 2023-02-10T19:23:59

Guard against _USE_MATH_DEFINES redefinition

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index bbce3d0..2099783 100644
--- a/include/SDL_stdinc.h
+++ b/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