Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2a0602

Browse files
committed
Silence VS2005 warnings about deprecated functions.
1 parent 30b4975 commit e2a0602

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

PC/pyconfig.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ MS_CORE_DLL.
2727
2828
*/
2929

30+
/* Visual Studio 2005 introduces deprecation warnings for
31+
"insecure" and POSIX functions. The insecure functions should
32+
be replaces by *_s versions (according to Microsoft); the
33+
POSIX functions by _* versions (which, according to Microsoft,
34+
would be ISO C conforming). Neither renaming is feasible, so
35+
we just silence the warnings. */
36+
37+
#define _CRT_SECURE_NO_DEPRECATE 1
38+
#define _CRT_NONSTDC_NO_DEPRECATE 1
39+
3040
#include <io.h>
3141
#define HAVE_SYS_UTIME_H
3242
#define HAVE_HYPOT

0 commit comments

Comments
 (0)