From: Martin v. Löwis Date: Tue, 29 Nov 2005 17:09:13 +0000 (+0000) Subject: Silence VS2005 warnings about deprecated functions. X-Git-Tag: v2.5a0~1088 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2a060257fe3b611da64014f231a8a7c8258435a;p=thirdparty%2FPython%2Fcpython.git Silence VS2005 warnings about deprecated functions. --- diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 8393fff9d0c4..dcfc36c935e9 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -27,6 +27,16 @@ MS_CORE_DLL. */ +/* Visual Studio 2005 introduces deprecation warnings for + "insecure" and POSIX functions. The insecure functions should + be replaces by *_s versions (according to Microsoft); the + POSIX functions by _* versions (which, according to Microsoft, + would be ISO C conforming). Neither renaming is feasible, so + we just silence the warnings. */ + +#define _CRT_SECURE_NO_DEPRECATE 1 +#define _CRT_NONSTDC_NO_DEPRECATE 1 + #include #define HAVE_SYS_UTIME_H #define HAVE_HYPOT