summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-22 23:49:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-22 23:49:42 (GMT)
commitc6ebd16a203b84de020fb236f32e8c58db92718d (patch)
treeaa2fcbb143209bcf24003981a914b556a2b2c941 /Include
parent0e03d6f2e91ede8e66442086484e76afad1702c0 (diff)
downloadcpython-c6ebd16a203b84de020fb236f32e8c58db92718d.zip
cpython-c6ebd16a203b84de020fb236f32e8c58db92718d.tar.gz
cpython-c6ebd16a203b84de020fb236f32e8c58db92718d.tar.bz2
Issue #11016: Try to fix compilaton of the new _stat.c module on Windows
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index eb1bbe2..4b9c238 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -406,6 +406,14 @@ typedef size_t Py_uhash_t;
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
+#ifndef S_ISCHR
+#define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR)
+#endif
+
+#ifndef S_ISBLK
+#define S_ISBLK(x) (((x) & S_IFMT) == S_IFBLK)
+#endif
+
#ifdef __cplusplus
/* Move this down here since some C++ #include's don't like to be included