mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005.
Make the definition #ARRAYSIZE conditional. VisualStudio .NET 2005 already has it defined using a better gimmick.
This commit is contained in:
parent
91c64a05d2
commit
dbeaa699cd
2 changed files with 8 additions and 0 deletions
|
|
@ -164,6 +164,12 @@ typedef int pid_t;
|
|||
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
|
||||
#define Py_IS_FINITE(X) _finite(X)
|
||||
|
||||
/* Turn off warnings about deprecated C runtime functions in
|
||||
VisualStudio .NET 2005 */
|
||||
#if _MSC_VER >= 1400 && !defined _CRT_SECURE_NO_DEPRECATE
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
/* define some ANSI types that are not defined in earlier Win headers */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue