mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +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
|
@ -1227,7 +1227,9 @@ _pystat_fromstructstat(STRUCT_STAT *st)
|
|||
|
||||
#define ISSLASHA(c) ((c) == '\\' || (c) == '/')
|
||||
#define ISSLASHW(c) ((c) == L'\\' || (c) == L'/')
|
||||
#ifndef ARRAYSIZE
|
||||
#define ARRAYSIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
#endif
|
||||
|
||||
static BOOL
|
||||
IsUNCRootA(char *path, int pathlen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue