]> granicus.if.org Git - python/commitdiff
Silence VS2005 warnings about deprecated functions.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 29 Nov 2005 17:09:13 +0000 (17:09 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 29 Nov 2005 17:09:13 +0000 (17:09 +0000)
PC/pyconfig.h

index 8393fff9d0c4b0aa5b42eaa610a1e47f3b580f36..dcfc36c935e997e230dac1d182f2b10372105ff0 100644 (file)
@@ -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