瀏覽代碼

Guard against _USE_MATH_DEFINES redefinition

Knightly 3 年之前
父節點
當前提交
a23d1af0ac
共有 1 個文件被更改,包括 3 次插入1 次删除
  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
    Visual Studio.  See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
    for more information.
    for more information.
 */
 */
-#  define _USE_MATH_DEFINES
+#  ifndef _USE_MATH_DEFINES
+#    define _USE_MATH_DEFINES
+#  endif
 # endif
 # endif
 # include <math.h>
 # include <math.h>
 #endif
 #endif