From: Martin v. Löwis Date: Tue, 21 Nov 2006 18:21:34 +0000 (+0000) Subject: Conditionalize definition of _CRT_SECURE_NO_DEPRECATE X-Git-Tag: v2.5.1c1~239 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2396f4c3b1b54a7749d4fa7a6cabac389bff6a21;p=thirdparty%2FPython%2Fcpython.git Conditionalize definition of _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE. --- diff --git a/Misc/NEWS b/Misc/NEWS index 231004dc4ae0..0cf1c4bf821f 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -206,6 +206,13 @@ Build files in VC7. +Windows +------- + +- Conditionalize definition of _CRT_SECURE_NO_DEPRECATE + and _CRT_NONSTDC_NO_DEPRECATE. + + What's New in Python 2.5 (final) ================================ diff --git a/PC/pyconfig.h b/PC/pyconfig.h index e0df67383bd0..20201d09ac65 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -39,8 +39,12 @@ MS_CORE_DLL. would be ISO C conforming). Neither renaming is feasible, so we just silence the warnings. */ +#ifndef _CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE 1 +#endif +#ifndef _CRT_NONSTDC_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE 1 +#endif /* Windows CE does not have these */ #ifndef MS_WINCE