diff options
Diffstat (limited to 'include/compat/sys')
-rw-r--r-- | include/compat/sys/stat.h | 7 | ||||
-rw-r--r-- | include/compat/sys/types.h | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index 55135d8..9d48251 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h | |||
@@ -6,7 +6,10 @@ | |||
6 | #ifndef LIBCRYPTOCOMPAT_SYS_STAT_H | 6 | #ifndef LIBCRYPTOCOMPAT_SYS_STAT_H |
7 | #define LIBCRYPTOCOMPAT_SYS_STAT_H | 7 | #define LIBCRYPTOCOMPAT_SYS_STAT_H |
8 | 8 | ||
9 | #ifdef _MSC_VER | 9 | #ifndef _MSC_VER |
10 | #include_next <sys/stat.h> | ||
11 | #else | ||
12 | |||
10 | #include <windows.h> | 13 | #include <windows.h> |
11 | #include <../include/sys/stat.h> | 14 | #include <../include/sys/stat.h> |
12 | 15 | ||
@@ -88,8 +91,6 @@ | |||
88 | #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) | 91 | #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) |
89 | #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) | 92 | #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) |
90 | 93 | ||
91 | #else | ||
92 | #include_next <sys/stat.h> | ||
93 | #endif | 94 | #endif |
94 | 95 | ||
95 | #endif | 96 | #endif |
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 9929dd5..38dc582 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h | |||
@@ -3,15 +3,15 @@ | |||
3 | * sys/types.h compatibility shim | 3 | * sys/types.h compatibility shim |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef LIBCRYPTOCOMPAT_SYS_TYPES_H | ||
7 | #define LIBCRYPTOCOMPAT_SYS_TYPES_H | ||
8 | |||
9 | #ifdef _MSC_VER | 6 | #ifdef _MSC_VER |
10 | #include <../include/sys/types.h> | 7 | #include <../include/sys/types.h> |
11 | #else | 8 | #else |
12 | #include_next <sys/types.h> | 9 | #include_next <sys/types.h> |
13 | #endif | 10 | #endif |
14 | 11 | ||
12 | #ifndef LIBCRYPTOCOMPAT_SYS_TYPES_H | ||
13 | #define LIBCRYPTOCOMPAT_SYS_TYPES_H | ||
14 | |||
15 | #include <stdint.h> | 15 | #include <stdint.h> |
16 | 16 | ||
17 | #ifdef __MINGW32__ | 17 | #ifdef __MINGW32__ |