@@ -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
@@ -16,6 +16,10 @@
#undef UNICODE
+#define _CRT_SECURE_NO_WARNINGS 1
+#endif
+
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
@@ -17,6 +17,9 @@
#ifdef PHYSFS_PLATFORM_WINRT
#include "physfs_internal.h"