]> granicus.if.org Git - python/commitdiff
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Nov 2006 18:20:25 +0000 (18:20 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 21 Nov 2006 18:20:25 +0000 (18:20 +0000)
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.

Misc/NEWS
PC/pyconfig.h

index d58cce51460ccac1c418b8cf207d663a35547fea..8754f026f41a3afc5aca3871f0497ba21829476f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -347,6 +347,13 @@ C API
   so it can be used as an expression.
 
 
+Windows
+-------
+
+- Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
+  and _CRT_NONSTDC_NO_DEPRECATE.
+
+
 Mac
 ---
 
index 4aedce73ac42041f3e5bf3438083a05b5eb979ce..f2ef7f95b8ae85a793f848a030edbe49f3f24c79 100644 (file)
@@ -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