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:
@ -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__ */
|
||||
|
Reference in New Issue
Block a user