diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-04-19 15:54:47 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-04-19 15:54:47 +0000 |
commit | ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26 (patch) | |
tree | d50cee0e5ac75d4d4d29c8f45a80e0ba34237761 | |
parent | 3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 (diff) | |
download | newlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.zip newlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.tar.gz newlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.tar.bz2 |
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.)
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libc/include/time.h | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index fe1108a..1200ab9 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +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.) + 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net> * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi): diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 261a5c6..f8bb53e 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -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__ */ |