diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config-win32.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/config-win32.h b/src/config-win32.h index f3fb6201c..940dbf064 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -181,14 +181,16 @@ #define HAVE_LONGLONG 1 #endif +/* Define to avoid VS2005 complaining about portable C functions */ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +#define _CRT_SECURE_NO_DEPRECATE 1 +#define _CRT_NONSTDC_NO_DEPRECATE 1 +#endif + /* ---------------------------------------------------------------- */ /* ADDITIONAL DEFINITIONS */ /* ---------------------------------------------------------------- */ -/* Defines set for VS2005 to _not_ deprecate a few functions we use. */ -#define _CRT_SECURE_NO_DEPRECATE 1 -#define _CRT_NONSTDC_NO_DEPRECATE 1 - /* Define cpu-machine-OS */ #ifndef OS #define OS "i386-pc-win32" |