Navigation Menu

Skip to content

Commit

Permalink
windows: Disable _CRT_SECURE_NO_WARNINGS again.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 17, 2017
1 parent 7607eee commit 5fb9119
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs_internal.h
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/physfs_platform_windows.c
Expand Up @@ -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>

Expand Down
3 changes: 3 additions & 0 deletions src/physfs_platform_winrt.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit 5fb9119

Please sign in to comment.