From 52d547fc4b3184462fbab6a7f8381fe3650c4cb1 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 3 Oct 2024 09:28:16 +0900 Subject: [PATCH] time: Make gmtime_r() visible to Zephyr The commit 5e4d0c80f49b4efe8be85e36b5e85d65bd343214 made gmtime_r(), which was previously always visible, only visible to POSIX. Since gmtime_r() is part of the allowed non-standard libc functions in the Zephyr Coding Guidelines Rule A.5, make it also visible to Zephyr. Signed-off-by: Stephanos Ioannidis --- newlib/libc/include/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index b7acf25e3a..d20e9ef044 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -228,7 +228,7 @@ int getdate_r (const char *, struct tm *); struct tm *gmtime (const time_t *_timer); -#if __POSIX_VISIBLE +#if __POSIX_VISIBLE || __ZEPHYR_VISIBLE struct tm *gmtime_r (const time_t *__restrict, struct tm *__restrict); #endif