2014-07-10 22:06:10 -05:00
|
|
|
/*
|
|
|
|
* Public domain
|
|
|
|
* sys/time.h compatibility shim
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
2015-09-08 15:00:09 -05:00
|
|
|
#if _MSC_VER >= 1900
|
|
|
|
#include <../ucrt/time.h>
|
|
|
|
#else
|
2014-07-10 22:06:10 -05:00
|
|
|
#include <../include/time.h>
|
2015-09-08 15:00:09 -05:00
|
|
|
#endif
|
2014-07-10 22:06:10 -05:00
|
|
|
#else
|
|
|
|
#include_next <time.h>
|
|
|
|
#endif
|
2015-10-07 06:23:38 -05:00
|
|
|
|
2015-10-18 09:28:10 -05:00
|
|
|
#ifdef _WIN32
|
|
|
|
struct tm *__gmtime_r(const time_t * t, struct tm * tm);
|
|
|
|
#define gmtime_r(tp, tm) __gmtime_r(tp, tm)
|
|
|
|
#endif
|
|
|
|
|
2015-10-14 23:53:52 -05:00
|
|
|
#ifndef HAVE_TIMEGM
|
|
|
|
time_t timegm(struct tm *tm);
|
|
|
|
#endif
|