Skip to content

Commit 52d547f

Browse files
committed
time: Make gmtime_r() visible to Zephyr
The commit 5e4d0c8 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 <[email protected]>
1 parent 45cf4dc commit 52d547f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newlib/libc/include/time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ int getdate_r (const char *, struct tm *);
228228

229229
struct tm *gmtime (const time_t *_timer);
230230

231-
#if __POSIX_VISIBLE
231+
#if __POSIX_VISIBLE || __ZEPHYR_VISIBLE
232232
struct tm *gmtime_r (const time_t *__restrict,
233233
struct tm *__restrict);
234234
#endif

0 commit comments

Comments
 (0)