diff options
Diffstat (limited to 'newlib/libc/include/time.h')
-rw-r--r-- | newlib/libc/include/time.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index a50bd608f..be2cb45c4 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -71,6 +71,26 @@ char *_EXFUN(strptime, (const char *, const char *, struct tm *)); _VOID _EXFUN(tzset, (_VOID)); _VOID _EXFUN(_tzset_r, (struct _reent *)); +typedef struct __tzrule_struct +{ + char ch; + int m; + int n; + int d; + int s; + time_t change; + int offset; +} __tzrule_type; + +typedef struct __tzinfo_struct +{ + int __tznorth; + int __tzyear; + __tzrule_type __tzrule[2]; +} __tzinfo_type; + +__tzinfo_type *_EXFUN (__gettzinfo, (_VOID)); + /* getdate functions */ #ifdef HAVE_GETDATE @@ -95,7 +115,11 @@ int _EXFUN(getdate_r, (const char *, struct tm *)); #endif /* HAVE_GETDATE */ /* defines for the opengroup specifications Derived from Issue 1 of the SVID. */ +#ifdef __CYGWIN__ extern __IMPORT time_t _timezone; +#else +extern __IMPORT long _timezone; +#endif extern __IMPORT int _daylight; extern __IMPORT char *_tzname[2]; |