Commit c6ebd16a authored by Victor Stinner's avatar Victor Stinner

Issue #11016: Try to fix compilaton of the new _stat.c module on Windows

parent 0e03d6f2
......@@ -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
......
......@@ -26,6 +26,10 @@ extern "C" {
#include <sys/stat.h>
#endif /* HAVE_SYS_STAT_H */
#ifdef MS_WINDOWS
typedef unsigned short mode_t;
#endif
/* From Python's stat.py */
#ifndef S_IMODE
# define S_IMODE 07777
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment