diff options
| author | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:04:07 -0600 |
|---|---|---|
| committer | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:04:07 -0600 |
| commit | cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6 (patch) | |
| tree | 5b996f42f586854e6ec0a2b1bee08644873605ba /include/compat/time.h | |
| parent | 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 (diff) | |
| download | portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.tar.gz portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.tar.bz2 portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.zip | |
tighten up compat include paths, fix glibc compatibility
Diffstat (limited to 'include/compat/time.h')
| -rw-r--r-- | include/compat/time.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index d363d42..2712951 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
| @@ -3,14 +3,9 @@ | |||
| 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 | #include <../include/time.h> | 7 | #include <../include/time.h> |
| 11 | #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL) | 8 | #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL) |
| 12 | #else | 9 | #else |
| 13 | #include_next <time.h> | 10 | #include_next <time.h> |
| 14 | #endif | 11 | #endif |
| 15 | |||
| 16 | #endif | ||
