summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-11-21 18:20:25 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-11-21 18:20:25 +0000
commit9cabc5e72b6c81a2530085f4958a3de7b9744bfd (patch)
treef7b6a6a7936267e90d6b675cd6d9104ccc0d2f1f /PC/pyconfig.h
parent21f308a26008bd7497220108b9781d4e246e8dd9 (diff)
downloadcpython-9cabc5e72b6c81a2530085f4958a3de7b9744bfd.tar.gz
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE. Will backport.
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 4aedce73ac..f2ef7f95b8 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