Explorar o código

windows: Disable _CRT_SECURE_NO_WARNINGS again.

Ryan C. Gordon %!s(int64=8) %!d(string=hai) anos
pai
achega
5fb9119ebc
Modificáronse 3 ficheiros con 8 adicións e 1 borrados
  1. 1 1
      src/physfs_internal.h
  2. 4 0
      src/physfs_platform_windows.c
  3. 3 0
      src/physfs_platform_winrt.cpp

+ 1 - 1
src/physfs_internal.h

@@ -15,7 +15,7 @@
 #endif
 
 /* Turn off MSVC warnings that are aggressively anti-portability. */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
 #define _CRT_SECURE_NO_WARNINGS 1
 #endif
 

+ 4 - 0
src/physfs_platform_windows.c

@@ -16,6 +16,10 @@
 #undef UNICODE
 #endif
 
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
+#define _CRT_SECURE_NO_WARNINGS 1
+#endif
+
 #define WIN32_LEAN_AND_MEAN 1
 #include <windows.h>
 

+ 3 - 0
src/physfs_platform_winrt.cpp

@@ -17,6 +17,9 @@
 
 #ifdef PHYSFS_PLATFORM_WINRT
 
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
+#define _CRT_SECURE_NO_WARNINGS 1
+#endif
 #include <windows.h>
 
 #include "physfs_internal.h"