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:
2
NEWS
2
NEWS
@@ -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.
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user