diff options
Diffstat (limited to 'include/compat')
| -rw-r--r-- | include/compat/time.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index 8f08c9a..dc460ef 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
| @@ -3,9 +3,6 @@ | |||
| 3 | * sys/time.h compatibility shim | 3 | * sys/time.h compatibility shim |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #ifndef LIBCRYPTOCOMPAT_TIME_H | ||
| 7 | #define LIBCRYPTOCOMPAT_TIME_H | ||
| 8 | |||
| 9 | #ifdef _MSC_VER | 6 | #ifdef _MSC_VER |
| 10 | #if _MSC_VER >= 1900 | 7 | #if _MSC_VER >= 1900 |
| 11 | #include <../ucrt/time.h> | 8 | #include <../ucrt/time.h> |
| @@ -16,6 +13,9 @@ | |||
| 16 | #include_next <time.h> | 13 | #include_next <time.h> |
| 17 | #endif | 14 | #endif |
| 18 | 15 | ||
| 16 | #ifndef LIBCRYPTOCOMPAT_TIME_H | ||
| 17 | #define LIBCRYPTOCOMPAT_TIME_H | ||
| 18 | |||
| 19 | #ifdef _WIN32 | 19 | #ifdef _WIN32 |
| 20 | struct tm *__gmtime_r(const time_t * t, struct tm * tm); | 20 | struct tm *__gmtime_r(const time_t * t, struct tm * tm); |
| 21 | #define gmtime_r(tp, tm) __gmtime_r(tp, tm) | 21 | #define gmtime_r(tp, tm) __gmtime_r(tp, tm) |
