summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2006-06-09 16:28:01 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2006-06-09 16:28:01 (GMT)
commitdbeaa699cd6056a8e72c3275c5cf863b6fec8f64 (patch)
tree12962da6bd8b690163664055368cc7c99d781128 /Modules/posixmodule.c
parent91c64a05d2536cbe764cb94c3e24f021d34f7d9a (diff)
downloadcpython-dbeaa699cd6056a8e72c3275c5cf863b6fec8f64.zip
cpython-dbeaa699cd6056a8e72c3275c5cf863b6fec8f64.tar.gz
cpython-dbeaa699cd6056a8e72c3275c5cf863b6fec8f64.tar.bz2
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.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c0280de..12e1c83 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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)