From 7118009b526746039a07a43e3239d24fbededf4e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 20 Jan 2024 15:35:43 -0800 Subject: Avoid macro redefinition. --- timer/include/timer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'timer/include') 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; // Need to macro to make CLOCK_REALTIME available when compiling with ISO C11. // The constant is only needed in the source file, but the header file needs to // include time.h too. +#ifndef __USE_POSIX199309 #define __USE_POSIX199309 +#endif // #include typedef struct timespec time_point; #endif -- cgit v1.2.3