Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.
diff --git a/Misc/NEWS b/Misc/NEWS
index d58cce5..8754f02 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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
 ---
 
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 4aedce7..f2ef7f9 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -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