From c52ae69844c2e56f84bc159af4cc6bf0fd107d84 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 14:21:06 -0400 Subject: move declaration and apply hidden visibility to __utc string --- src/time/gmtime_r.c | 2 -- src/time/time_impl.h | 1 + src/time/timegm.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/time') diff --git a/src/time/gmtime_r.c b/src/time/gmtime_r.c index cba72447..e529799b 100644 --- a/src/time/gmtime_r.c +++ b/src/time/gmtime_r.c @@ -2,8 +2,6 @@ #include #include "libc.h" -extern const char __utc[]; - struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm) { if (__secs_to_tm(*t, tm) < 0) { diff --git a/src/time/time_impl.h b/src/time/time_impl.h index 43251d24..f26d8005 100644 --- a/src/time/time_impl.h +++ b/src/time/time_impl.h @@ -8,3 +8,4 @@ hidden const char *__tm_to_tzname(const struct tm *); hidden int __secs_to_tm(long long, struct tm *); hidden void __secs_to_zone(long long, int, int *, long *, long *, const char **); hidden const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int); +extern hidden const char __utc[]; diff --git a/src/time/timegm.c b/src/time/timegm.c index f444e76e..4e5907d7 100644 --- a/src/time/timegm.c +++ b/src/time/timegm.c @@ -2,8 +2,6 @@ #include "time_impl.h" #include -extern const char __utc[]; - time_t timegm(struct tm *tm) { struct tm new; -- cgit v1.2.3-70-g09d2