diff options
author | Brent Cook <busterb@gmail.com> | 2018-03-23 15:35:58 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2018-03-23 15:35:58 -0500 |
commit | 31c98c2969f70b2db3e866352ec027f7b965c406 (patch) | |
tree | 739ffe44cec002699b9b212a6c32ca2d02ec67c3 | |
parent | 862cd768b7fd81bcbe13fd49109932309e107856 (diff) | |
download | portable-31c98c2969f70b2db3e866352ec027f7b965c406.tar.gz portable-31c98c2969f70b2db3e866352ec027f7b965c406.tar.bz2 portable-31c98c2969f70b2db3e866352ec027f7b965c406.zip |
always allow upstream time.h to be visible
-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) |