Skip to content

Commit

Permalink
time: Make gmtime_r() visible to Zephyr
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stephanosio committed Oct 3, 2024
1 parent 45cf4dc commit 52d547f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newlib/libc/include/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52d547f

Please sign in to comment.