1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-20 23:30:36 +00:00

* private.h (timegm, timelocal) [time_tz]: Define replacements.

Needed on Ubuntu 14.04 when compiling with -D_GNU_SOURCE -Dtime_tz=....
This commit is contained in:
Paul Eggert
2014-08-16 19:37:12 -07:00
parent aedcce3e83
commit 4d86b313aa

View File

@ -278,6 +278,10 @@ static time_t sys_time(time_t *x) { return time(x); }
# define time2posix tz_time2posix
# undef time_t
# define time_t tz_time_t
# undef timegm
# define timegm tz_timegm
# undef timelocal
# define timelocal tz_timelocal
# undef timeoff
# define timeoff tz_timeoff
@ -316,6 +320,12 @@ void tzsetwall(void);
# if !defined offtime || defined time_tz
struct tm *offtime(time_t const *, long);
# endif
# if !defined timegm || defined time_tz
time_t timegm(struct tm *);
# endif
# if !defined timelocal || defined time_tz
time_t timelocal(struct tm *);
# endif
# if !defined timeoff || defined time_tz
time_t timeoff(struct tm *, long);
# endif