blob: e16d3a28d4ebaeba31ded393cef453c87f11a343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef KIT_TIME_H
#define KIT_TIME_H
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <time.h>
#ifndef TIME_UTC
# define TIME_UTC 1
#endif
#ifdef __MINGW32__
struct timespec {
time_t tv_sec;
long tv_nsec;
};
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN 1
# endif
# include <Windows.h>
static int timespec_get(struct timespec *ts, int base) { }
#endif
#endif
|