aboutsummaryrefslogtreecommitdiff
path: root/timer/include
diff options
context:
space:
mode:
Diffstat (limited to 'timer/include')
-rw-r--r--timer/include/timer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/timer/include/timer.h b/timer/include/timer.h
index a8a3f8b..b65f8d4 100644
--- a/timer/include/timer.h
+++ b/timer/include/timer.h
@@ -6,6 +6,10 @@
6#ifdef _WIN32 6#ifdef _WIN32
7typedef uint64_t time_point; 7typedef uint64_t time_point;
8#else 8#else
9// Need to macro to make CLOCK_REALTIME available when compiling with ISO C11.
10// The constant is only needed in the source file, but the header file needs to
11// include time.h too.
12#define __USE_POSIX199309
9#include <time.h> 13#include <time.h>
10typedef struct timespec time_point; 14typedef struct timespec time_point;
11#endif 15#endif