Skip to content

Commit e1bcab4

Browse files
authored
Avoid redefinition warnings for CLOCK_MONOTONIC (#1)
Signed-off-by: Dan Kouba <[email protected]>
1 parent 0b97d0c commit e1bcab4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/shared/platform/zephyr/platform_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ typedef struct timespec os_timespec;
286286
#define CLOCK_REALTIME 1
287287
#endif
288288

289+
#ifndef CLOCK_MONOTONIC
289290
#define CLOCK_MONOTONIC 4
291+
#endif
290292

291293
static inline int
292294
os_sched_yield(void)

0 commit comments

Comments
 (0)