[Python-checkins] r52817 - in python/trunk: Misc/NEWS PC/pyconfig.h

martin.v.loewis python-checkins at python.org
Tue Nov 21 19:20:26 CET 2006


Author: martin.v.loewis
Date: Tue Nov 21 19:20:25 2006
New Revision: 52817

Modified:
   python/trunk/Misc/NEWS
   python/trunk/PC/pyconfig.h
Log:
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.


Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Tue Nov 21 19:20:25 2006
@@ -347,6 +347,13 @@
   so it can be used as an expression.
 
 
+Windows
+-------
+
+- Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
+  and _CRT_NONSTDC_NO_DEPRECATE.
+
+
 Mac
 ---
 

Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h	(original)
+++ python/trunk/PC/pyconfig.h	Tue Nov 21 19:20:25 2006
@@ -39,8 +39,12 @@
    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


More information about the Python-checkins mailing list