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 3ef3bad..3a87548 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -14,6 +14,10 @@
14#include_next <time.h> 14#include_next <time.h>
15#endif 15#endif
16 16
17#ifdef _WIN32 17#ifndef HAVE_TIMEGM
18#ifdef HAVE__MKGMTIME
18#define timegm(tm) _mkgmtime(tm) 19#define timegm(tm) _mkgmtime(tm)
20#else
21time_t timegm(struct tm *tm);
22#endif
19#endif 23#endif