diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-23 01:49:42 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-23 01:49:42 +0200 |
commit | c3e8ff9e1b2cd8ebb7ab998d5bed80c9c5bcd960 (patch) | |
tree | d1e90ff472c0697d33eac9cd754086abb49576c8 /Include/pyport.h | |
parent | bcb347ae9f25327276e13463360172827d85931f (diff) | |
download | cpython-c3e8ff9e1b2cd8ebb7ab998d5bed80c9c5bcd960.tar.gz |
Issue #11016: Try to fix compilaton of the new _stat.c module on Windows
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index eb1bbe20ec..4b9c238b9f 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 |