aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-01-20 15:35:43 -0800
committer3gg <3gg@shellblade.net>2024-01-20 15:35:43 -0800
commit7118009b526746039a07a43e3239d24fbededf4e (patch)
tree010b5689220b554ca1160526883cb4e6302eb53f
parent3bceb37b1cf75b1ffd9b8265209d9b0c3d8417f0 (diff)
Avoid macro redefinition.
-rw-r--r--timer/include/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/timer/include/timer.h b/timer/include/timer.h
index b65f8d4..94781d6 100644
--- a/timer/include/timer.h
+++ b/timer/include/timer.h
@@ -9,7 +9,9 @@ typedef uint64_t time_point;
9// Need to macro to make CLOCK_REALTIME available when compiling with ISO C11. 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 10// The constant is only needed in the source file, but the header file needs to
11// include time.h too. 11// include time.h too.
12#ifndef __USE_POSIX199309
12#define __USE_POSIX199309 13#define __USE_POSIX199309
14#endif //
13#include <time.h> 15#include <time.h>
14typedef struct timespec time_point; 16typedef struct timespec time_point;
15#endif 17#endif