From ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 19 Apr 2001 15:54:47 +0000 Subject: 2001-04-19 Robert Collins * 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.) --- newlib/libc/include/time.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'newlib/libc/include/time.h') diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 261a5c6e0..f8bb53eb1 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__ */ -- cgit v1.2.3