X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..5ea0322b6ab2af986e4c764284141380031dd014:/icuSources/tools/tzcode/localtime.c diff --git a/icuSources/tools/tzcode/localtime.c b/icuSources/tools/tzcode/localtime.c index ff07c709..7a7ebd1e 100644 --- a/icuSources/tools/tzcode/localtime.c +++ b/icuSources/tools/tzcode/localtime.c @@ -1176,7 +1176,10 @@ gmtload(struct state *const sp) ** A non-static declaration of tzsetwall in a system header file ** may cause a warning about this upcoming static declaration... */ +static void tzsetwall(void); static +#else +void tzsetwall(void); #endif /* !defined STD_INSPIRED */ void tzsetwall(void) @@ -1392,6 +1395,7 @@ gmtime_r(const time_t *const timep, struct tm *tmp) } #ifdef STD_INSPIRED +struct tm * offtime(const time_t *const timep, const long offset); struct tm * offtime(const time_t *const timep, const long offset) @@ -1936,6 +1940,7 @@ mktime(struct tm *const tmp) } #ifdef STD_INSPIRED +time_t timelocal(struct tm *const tmp); time_t timelocal(struct tm *const tmp) @@ -1945,6 +1950,8 @@ timelocal(struct tm *const tmp) return mktime(tmp); } +time_t timegm(struct tm *const tmp); + time_t timegm(struct tm *const tmp) { @@ -1953,6 +1960,8 @@ timegm(struct tm *const tmp) return time1(tmp, gmtsub, 0L); } +time_t timeoff(struct tm *const tmp, const long offset); + time_t timeoff(struct tm *const tmp, const long offset) { @@ -2013,6 +2022,8 @@ leapcorr(time_t *timep) return 0; } +time_t time2posix(time_t t); + time_t time2posix(time_t t) { @@ -2020,6 +2031,8 @@ time2posix(time_t t) return t - leapcorr(&t); } +time_t posix2time(time_t t); + time_t posix2time(time_t t) {