Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e03d6f commit c6ebd16Copy full SHA for c6ebd16
2 files changed
Include/pyport.h
@@ -406,6 +406,14 @@ typedef size_t Py_uhash_t;
406
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
407
#endif
408
409
+#ifndef S_ISCHR
410
+#define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR)
411
+#endif
412
+
413
+#ifndef S_ISBLK
414
+#define S_ISBLK(x) (((x) & S_IFMT) == S_IFBLK)
415
416
417
418
#ifdef __cplusplus
419
/* Move this down here since some C++ #include's don't like to be included
Modules/_stat.c
@@ -26,6 +26,10 @@ extern "C" {
26
#include <sys/stat.h>
27
#endif /* HAVE_SYS_STAT_H */
28
29
+#ifdef MS_WINDOWS
30
+typedef unsigned short mode_t;
31
32
33
/* From Python's stat.py */
34
#ifndef S_IMODE
35
# define S_IMODE 07777
0 commit comments