2001-04-19 Robert Collins <rbtcollins@hotmail.com>

* include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
        Define daylight to _daylight if it is not defined
        Prepare a variable export of timezone based on timezonevariable.
        (Cannot be used with the timezone() function.)
This commit is contained in:
Jeff Johnston
2001-04-19 15:54:47 +00:00
parent 3ee14d6850
commit ee9f39fb3a
2 changed files with 20 additions and 1 deletions

View File

@ -66,8 +66,20 @@ struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
extern __IMPORT time_t _timezone;
extern __IMPORT int _daylight;
extern __IMPORT char *_tzname[2];
/* defines for the opengroup specifications Derived from Issue 1 of the SVID. */
#ifndef tzname
#define tzname _tzname
#endif
#ifndef daylight
#define daylight _daylight
#endif
#if timezonevar
#ifndef timezone
#define timezone ((long int) _timezone)
#endif
#else
char *_EXFUN(timezone, (void));
#endif
void _EXFUN(tzset, (void));
#endif
#endif /* __CYGWIN__ */