aboutsummaryrefslogtreecommitdiff
path: root/include/compat/time.h
blob: 9ed9c03bb05cdf38114a57abc177211a4830cf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Public domain
 * sys/time.h compatibility shim
 */

#ifdef _MSC_VER
#if _MSC_VER >= 1900
#include <../ucrt/time.h>
#else
#include <../include/time.h>
#endif
#define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL)
#else
#include_next <time.h>
#endif

#ifndef HAVE_TIMEGM
time_t timegm(struct tm *tm);
#endif