瀏覽代碼

Fix "Macro name is a reserved identifier" on OS X

This also more accurately only sets these definitions for MSVC.
Kevin Wojniak 9 年之前
父節點
當前提交
55f3e39ceb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test/shared.c

+ 2 - 0
test/shared.c

@@ -19,12 +19,14 @@
  * THE SOFTWARE.
  */
 
+#ifdef _MSC_VER
 #if !defined(_CRT_SECURE_NO_WARNINGS)
 #define _CRT_SECURE_NO_WARNINGS
 #endif
 #if !defined(_CRT_SECURE_NO_DEPRECATE)
 #define _CRT_SECURE_NO_DEPRECATE
 #endif
+#endif
 
 #include "shared.h"
 #include <string.h>