include timegm fallback

This commit is contained in:
Brent Cook
2015-10-14 23:53:52 -05:00
parent 1dd79f5d8f
commit 4298ac9305
6 changed files with 86 additions and 6 deletions

View File

@@ -14,6 +14,10 @@
#include_next <time.h>
#endif
#ifdef _WIN32
#ifndef HAVE_TIMEGM
#ifdef HAVE__MKGMTIME
#define timegm(tm) _mkgmtime(tm)
#else
time_t timegm(struct tm *tm);
#endif
#endif