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

@@ -3,9 +3,6 @@
* limits.h compatibility shim
*/
#ifndef LIBCRYPTOCOMPAT_LIMITS_H
#define LIBCRYPTOCOMPAT_LIMITS_H
#ifdef _MSC_VER
#if _MSC_VER >= 1900
#include <../ucrt/limits.h>
@@ -22,5 +19,3 @@
#define PATH_MAX MAXPATHLEN
#endif
#endif
#endif

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