We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a9ee47 commit 2d23a7dCopy full SHA for 2d23a7d
compat.h
@@ -14,6 +14,29 @@
14
15
#include <windows.h>
16
17
+
18
+#if !defined S_ISDIR && defined S_IFDIR
19
+# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
20
+#endif
21
+#if !S_IRUSR && S_IREAD
22
+# define S_IRUSR S_IREAD
23
24
+#if !S_IRUSR
25
+# define S_IRUSR 00400
26
27
+#if !S_IWUSR && S_IWRITE
28
+# define S_IWUSR S_IWRITE
29
30
+#if !S_IWUSR
31
+# define S_IWUSR 00200
32
33
+#if !S_IXUSR && S_IEXEC
34
+# define S_IXUSR S_IEXEC
35
36
+#if !S_IXUSR
37
+# define S_IXUSR 00100
38
39
40
#ifndef HAVE_LIBWINPTHREAD
41
static inline int nanosleep(const struct timespec *req, struct timespec *rem)
42
{
0 commit comments