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

#ifndef LIBCRYPTOCOMPAT_TIME_H
#define LIBCRYPTOCOMPAT_TIME_H

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

#endif