aboutsummaryrefslogtreecommitdiff
path: root/include/compat/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/time.h')
-rw-r--r--include/compat/time.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/compat/time.h b/include/compat/time.h
index 9ed9c03..99a2001 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -9,11 +9,15 @@
9#else 9#else
10#include <../include/time.h> 10#include <../include/time.h>
11#endif 11#endif
12#define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL)
13#else 12#else
14#include_next <time.h> 13#include_next <time.h>
15#endif 14#endif
16 15
16#ifdef _WIN32
17struct tm *__gmtime_r(const time_t * t, struct tm * tm);
18#define gmtime_r(tp, tm) __gmtime_r(tp, tm)
19#endif
20
17#ifndef HAVE_TIMEGM 21#ifndef HAVE_TIMEGM
18time_t timegm(struct tm *tm); 22time_t timegm(struct tm *tm);
19#endif 23#endif