summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-11-29 17:09:13 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-11-29 17:09:13 (GMT)
commite2a060257fe3b611da64014f231a8a7c8258435a (patch)
tree513f6c89f426c12329c2d1008671b4a64cf0dac8 /PC
parent30b4975d29bddaf820978422465abbc8589dd759 (diff)
downloadcpython-e2a060257fe3b611da64014f231a8a7c8258435a.zip
cpython-e2a060257fe3b611da64014f231a8a7c8258435a.tar.gz
cpython-e2a060257fe3b611da64014f231a8a7c8258435a.tar.bz2
Silence VS2005 warnings about deprecated functions.
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 8393fff..dcfc36c 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -27,6 +27,16 @@ MS_CORE_DLL.
*/
+/* Visual Studio 2005 introduces deprecation warnings for
+ "insecure" and POSIX functions. The insecure functions should
+ be replaces by *_s versions (according to Microsoft); the
+ POSIX functions by _* versions (which, according to Microsoft,
+ would be ISO C conforming). Neither renaming is feasible, so
+ we just silence the warnings. */
+
+#define _CRT_SECURE_NO_DEPRECATE 1
+#define _CRT_NONSTDC_NO_DEPRECATE 1
+
#include <io.h>
#define HAVE_SYS_UTIME_H
#define HAVE_HYPOT