summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-11-21 18:21:34 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-11-21 18:21:34 (GMT)
commit2396f4c3b1b54a7749d4fa7a6cabac389bff6a21 (patch)
treee862a7fb83d8a1db6a2527b5fe1f7e4cf7bb6f0b
parent6a3955e99d14b8e4b79d0dd1addae281e5e75318 (diff)
downloadcpython-2396f4c3b1b54a7749d4fa7a6cabac389bff6a21.zip
cpython-2396f4c3b1b54a7749d4fa7a6cabac389bff6a21.tar.gz
cpython-2396f4c3b1b54a7749d4fa7a6cabac389bff6a21.tar.bz2
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE.
-rw-r--r--Misc/NEWS7
-rw-r--r--PC/pyconfig.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 231004d..0cf1c4b 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 e0df673..20201d0 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