1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 20:29:22 +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.
(Problem reported by Jörg Richter.)
Allow -Dtime_tz=time_t compilations. (Problem reported by Bradley White.)
Changes affecting commentary
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); }
# endif
typedef time_tz tz_time_t;
# undef ctime
# define ctime tz_ctime
# undef ctime_r
@@ -341,8 +343,6 @@ static time_t sys_time(time_t *x) { return time(x); }
# undef timeoff
# define timeoff tz_timeoff
typedef time_tz time_t;
char *ctime(time_t const *);
char *ctime_r(time_t const *, char *);
double difftime(time_t, time_t);