[Python-checkins] commit of r41563 - python/trunk/PC
martin.v.loewis
python-checkins at python.org
Tue Nov 29 18:09:18 CET 2005
Author: martin.v.loewis
Date: Tue Nov 29 18:09:13 2005
New Revision: 41563
Modified:
python/trunk/PC/pyconfig.h
Log:
Silence VS2005 warnings about deprecated functions.
Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h (original)
+++ python/trunk/PC/pyconfig.h Tue Nov 29 18:09:13 2005
@@ -27,6 +27,16 @@
*/
+/* 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
More information about the Python-checkins
mailing list