1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 21:28:54 +00:00

Support -Dtime_tz=time_t

* private.h (tz_time_t), NEWS: Move typedef earlier.
(Problem reported by Bradley White.)
This commit is contained in:
Paul Eggert
2015-03-10 17:56:04 -07:00
parent 4c8309661d
commit af120ed59b
2 changed files with 4 additions and 2 deletions

2
NEWS
View File

@@ -34,6 +34,8 @@ Unreleased, experimental changes
Fix integer overflow bug in reference 'mktime' implementation. Fix integer overflow bug in reference 'mktime' implementation.
(Problem reported by Jörg Richter.) (Problem reported by Jörg Richter.)
Allow -Dtime_tz=time_t compilations. (Problem reported by Bradley White.)
Changes affecting commentary Changes affecting commentary
Cite the recent Mexican decree changing Quintana Roo's time zone. Cite the recent Mexican decree changing Quintana Roo's time zone.

View File

@@ -308,6 +308,8 @@ typedef unsigned long uintmax_t;
static time_t sys_time(time_t *x) { return time(x); } static time_t sys_time(time_t *x) { return time(x); }
# endif # endif
typedef time_tz tz_time_t;
# undef ctime # undef ctime
# define ctime tz_ctime # define ctime tz_ctime
# undef ctime_r # undef ctime_r
@@ -341,8 +343,6 @@ static time_t sys_time(time_t *x) { return time(x); }
# undef timeoff # undef timeoff
# define timeoff tz_timeoff # define timeoff tz_timeoff
typedef time_tz time_t;
char *ctime(time_t const *); char *ctime(time_t const *);
char *ctime_r(time_t const *, char *); char *ctime_r(time_t const *, char *);
double difftime(time_t, time_t); double difftime(time_t, time_t);