diff --git a/clientgui/stdwx.h b/clientgui/stdwx.h index dce6d9ab1a..788b68f687 100644 --- a/clientgui/stdwx.h +++ b/clientgui/stdwx.h @@ -23,17 +23,6 @@ #ifdef _WIN32 -// Visual Studio 2005 has extended the C Run-Time Library by including "secure" -// runtime functions and deprecating the previous function prototypes. Since -// we need to use the previous prototypes to maintain compatibility with other -// platforms we are going to disable the deprecation warnings if we are compiling -// on Visual Studio 2005 -#if _MSC_VER >= 1400 -#ifndef _CRT_SECURE_NO_DEPRECATE -#define _CRT_SECURE_NO_DEPRECATE -#endif -#endif - // Modify the following defines if you have to target a platform prior to the ones specified below. // Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. @@ -113,6 +102,17 @@ #ifdef _WIN32 +// Visual Studio 2005 has extended the C Run-Time Library by including "secure" +// runtime functions and deprecating the previous function prototypes. Since +// we need to use the previous prototypes to maintain compatibility with other +// platforms we are going to disable the deprecation warnings if we are compiling +// on Visual Studio 2005 +#if _MSC_VER >= 1400 +#ifndef _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE +#endif +#endif + // Windows Headers // #include