mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-09 19:22:52 +00:00
#define fix
SCCS-file: localtime.c SCCS-SID: 7.13
This commit is contained in:
committed by
Paul Eggert
parent
630cea5e61
commit
a88d0a3f3e
16
localtime.c
16
localtime.c
@ -63,6 +63,13 @@ struct lsinfo { /* leap second information */
|
||||
|
||||
#define BIGGEST(a, b) (((a) > (b)) ? (a) : (b))
|
||||
|
||||
#ifdef TZNAME_MAX
|
||||
#define MY_TZNAME_MAX TZNAME_MAX
|
||||
#endif /* defined TZNAME_MAX */
|
||||
#ifndef TZNAME_MAX
|
||||
#define MY_TZNAME_MAX 255
|
||||
#endif /* !defined TZNAME_MAX */
|
||||
|
||||
struct state {
|
||||
int leapcnt;
|
||||
int timecnt;
|
||||
@ -72,14 +79,7 @@ struct state {
|
||||
unsigned char types[TZ_MAX_TIMES];
|
||||
struct ttinfo ttis[TZ_MAX_TYPES];
|
||||
char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + 1, sizeof GMT),
|
||||
(2 * (
|
||||
#ifdef TZNAME_MAX
|
||||
TZNAME_MAX
|
||||
#endif /* defined TZNAME_MAX */
|
||||
#ifndef TZNAME_MAX
|
||||
255
|
||||
#endif /* !defined TZNAME_MAX */
|
||||
+ 1)))];
|
||||
(2 * (MY_TZNAME_MAX + 1)))];
|
||||
struct lsinfo lsis[TZ_MAX_LEAPS];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user