diff options
| -rw-r--r-- | include/compat/dirent_msvc.h | 15 | ||||
| -rw-r--r-- | include/compat/stdio.h | 6 | ||||
| -rw-r--r-- | include/compat/stdlib.h | 4 | ||||
| -rw-r--r-- | include/compat/string.h | 4 | ||||
| -rw-r--r-- | include/compat/sys/stat.h | 4 | ||||
| -rw-r--r-- | include/compat/sys/types.h | 4 | ||||
| -rw-r--r-- | include/compat/time.h | 4 | ||||
| -rw-r--r-- | libtls-standalone/include/string.h | 4 |
8 files changed, 42 insertions, 3 deletions
diff --git a/include/compat/dirent_msvc.h b/include/compat/dirent_msvc.h index bf9cf1a..e5c5c41 100644 --- a/include/compat/dirent_msvc.h +++ b/include/compat/dirent_msvc.h | |||
| @@ -29,15 +29,24 @@ | |||
| 29 | 29 | ||
| 30 | #include <windows.h> | 30 | #include <windows.h> |
| 31 | 31 | ||
| 32 | #if _MSC_VER >= 1900 | ||
| 33 | #include <../ucrt/stdio.h> | ||
| 34 | #include <../ucrt/wchar.h> | ||
| 35 | #include <../ucrt/string.h> | ||
| 36 | #include <../ucrt/stdlib.h> | ||
| 37 | #include <../ucrt/sys/types.h> | ||
| 38 | #include <../ucrt/errno.h> | ||
| 39 | #else | ||
| 32 | #include <../include/stdio.h> | 40 | #include <../include/stdio.h> |
| 33 | #include <../include/stdarg.h> | ||
| 34 | #include <../include/wchar.h> | 41 | #include <../include/wchar.h> |
| 35 | #include <../include/string.h> | 42 | #include <../include/string.h> |
| 36 | #include <../include/stdlib.h> | 43 | #include <../include/stdlib.h> |
| 37 | #include <../include/malloc.h> | ||
| 38 | #include <../include/sys/types.h> | 44 | #include <../include/sys/types.h> |
| 39 | #include <sys/stat.h> | ||
| 40 | #include <../include/errno.h> | 45 | #include <../include/errno.h> |
| 46 | #endif | ||
| 47 | |||
| 48 | #include <stdarg.h> | ||
| 49 | #include <sys/stat.h> | ||
| 41 | 50 | ||
| 42 | /* Indicates that d_type field is available in dirent structure */ | 51 | /* Indicates that d_type field is available in dirent structure */ |
| 43 | #define _DIRENT_HAVE_D_TYPE | 52 | #define _DIRENT_HAVE_D_TYPE |
diff --git a/include/compat/stdio.h b/include/compat/stdio.h index 973faa4..4b96b8b 100644 --- a/include/compat/stdio.h +++ b/include/compat/stdio.h | |||
| @@ -7,7 +7,13 @@ | |||
| 7 | #define LIBCRYPTOCOMPAT_STDIO_H | 7 | #define LIBCRYPTOCOMPAT_STDIO_H |
| 8 | 8 | ||
| 9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
| 10 | #if _MSC_VER >= 1900 | ||
| 11 | #include <../ucrt/stdlib.h> | ||
| 12 | #include <../ucrt/corecrt_io.h> | ||
| 13 | #include <../ucrt/stdio.h> | ||
| 14 | #else | ||
| 10 | #include <../include/stdio.h> | 15 | #include <../include/stdio.h> |
| 16 | #endif | ||
| 11 | #else | 17 | #else |
| 12 | #include_next <stdio.h> | 18 | #include_next <stdio.h> |
| 13 | #endif | 19 | #endif |
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h index e31f075..506d463 100644 --- a/include/compat/stdlib.h +++ b/include/compat/stdlib.h | |||
| @@ -4,7 +4,11 @@ | |||
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #ifdef _MSC_VER | 6 | #ifdef _MSC_VER |
| 7 | #if _MSC_VER >= 1900 | ||
| 8 | #include <../ucrt/stdlib.h> | ||
| 9 | #else | ||
| 7 | #include <../include/stdlib.h> | 10 | #include <../include/stdlib.h> |
| 11 | #endif | ||
| 8 | #else | 12 | #else |
| 9 | #include_next <stdlib.h> | 13 | #include_next <stdlib.h> |
| 10 | #endif | 14 | #endif |
diff --git a/include/compat/string.h b/include/compat/string.h index eabc4c4..f0a0711 100644 --- a/include/compat/string.h +++ b/include/compat/string.h | |||
| @@ -7,7 +7,11 @@ | |||
| 7 | #define LIBCRYPTOCOMPAT_STRING_H | 7 | #define LIBCRYPTOCOMPAT_STRING_H |
| 8 | 8 | ||
| 9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
| 10 | #if _MSC_VER >= 1900 | ||
| 11 | #include <../ucrt/string.h> | ||
| 12 | #else | ||
| 10 | #include <../include/string.h> | 13 | #include <../include/string.h> |
| 14 | #endif | ||
| 11 | #else | 15 | #else |
| 12 | #include_next <string.h> | 16 | #include_next <string.h> |
| 13 | #endif | 17 | #endif |
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index 9d48251..0e04553 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h | |||
| @@ -11,7 +11,11 @@ | |||
| 11 | #else | 11 | #else |
| 12 | 12 | ||
| 13 | #include <windows.h> | 13 | #include <windows.h> |
| 14 | #if _MSC_VER >= 1900 | ||
| 15 | #include <../ucrt/sys/stat.h> | ||
| 16 | #else | ||
| 14 | #include <../include/sys/stat.h> | 17 | #include <../include/sys/stat.h> |
| 18 | #endif | ||
| 15 | 19 | ||
| 16 | /* File type and permission flags for stat() */ | 20 | /* File type and permission flags for stat() */ |
| 17 | #if !defined(S_IFMT) | 21 | #if !defined(S_IFMT) |
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 38dc582..1e9979f 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h | |||
| @@ -4,7 +4,11 @@ | |||
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #ifdef _MSC_VER | 6 | #ifdef _MSC_VER |
| 7 | #if _MSC_VER >= 1900 | ||
| 8 | #include <../ucrt/sys/types.h> | ||
| 9 | #else | ||
| 7 | #include <../include/sys/types.h> | 10 | #include <../include/sys/types.h> |
| 11 | #endif | ||
| 8 | #else | 12 | #else |
| 9 | #include_next <sys/types.h> | 13 | #include_next <sys/types.h> |
| 10 | #endif | 14 | #endif |
diff --git a/include/compat/time.h b/include/compat/time.h index 2712951..68b00a6 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
| @@ -4,7 +4,11 @@ | |||
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #ifdef _MSC_VER | 6 | #ifdef _MSC_VER |
| 7 | #if _MSC_VER >= 1900 | ||
| 8 | #include <../ucrt/time.h> | ||
| 9 | #else | ||
| 7 | #include <../include/time.h> | 10 | #include <../include/time.h> |
| 11 | #endif | ||
| 8 | #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL) | 12 | #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL) |
| 9 | #else | 13 | #else |
| 10 | #include_next <time.h> | 14 | #include_next <time.h> |
diff --git a/libtls-standalone/include/string.h b/libtls-standalone/include/string.h index eabc4c4..f0a0711 100644 --- a/libtls-standalone/include/string.h +++ b/libtls-standalone/include/string.h | |||
| @@ -7,7 +7,11 @@ | |||
| 7 | #define LIBCRYPTOCOMPAT_STRING_H | 7 | #define LIBCRYPTOCOMPAT_STRING_H |
| 8 | 8 | ||
| 9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
| 10 | #if _MSC_VER >= 1900 | ||
| 11 | #include <../ucrt/string.h> | ||
| 12 | #else | ||
| 10 | #include <../include/string.h> | 13 | #include <../include/string.h> |
| 14 | #endif | ||
| 11 | #else | 15 | #else |
| 12 | #include_next <string.h> | 16 | #include_next <string.h> |
| 13 | #endif | 17 | #endif |
