From e0cc5fc038367fc8b3df61f5f39d71af5d1901ea Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 10 Sep 2009 02:52:34 +0000 Subject: [PATCH] Wrap wx includes with _CRT_SECURE_NO_WARNINGS to make msvc stop hurfing and durfing. Originally committed to SVN as r3507. --- aegisub/src/stdwx.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aegisub/src/stdwx.h b/aegisub/src/stdwx.h index 623ce3e24..32a2772e6 100644 --- a/aegisub/src/stdwx.h +++ b/aegisub/src/stdwx.h @@ -47,6 +47,11 @@ ///////// // Setup +#ifdef _CRT_SECURE_NO_WARNINGS +#define _CRT_SECURE_NO_WARNINGS_DEFINED +#else +#define _CRT_SECURE_NO_WARNINGS +#endif #define WIN32_LEAN_AND_MEAN #define WX_PRE @@ -175,4 +180,8 @@ #include #endif +#ifndef _CRT_SECURE_NO_WARNINGS +#undef _CRT_SECURE_NO_WARNINGS +#endif + #endif // C++