mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* libc/include/time.h (_timezone): Change to long also for Cygwin.
(timezone): Drop cast from definition.
This commit is contained in:
parent
d0578adf88
commit
39fd43d7fa
@ -1,3 +1,8 @@
|
|||||||
|
2005-02-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/include/time.h (_timezone): Change to long also for Cygwin.
|
||||||
|
(timezone): Drop cast from definition.
|
||||||
|
|
||||||
2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
|
2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/include/time.h [!CYGWIN](_timezone): Change to long.
|
* libc/include/time.h [!CYGWIN](_timezone): Change to long.
|
||||||
|
@ -115,11 +115,7 @@ int _EXFUN(getdate_r, (const char *, struct tm *));
|
|||||||
#endif /* HAVE_GETDATE */
|
#endif /* HAVE_GETDATE */
|
||||||
|
|
||||||
/* defines for the opengroup specifications Derived from Issue 1 of the SVID. */
|
/* defines for the opengroup specifications Derived from Issue 1 of the SVID. */
|
||||||
#ifdef __CYGWIN__
|
|
||||||
extern __IMPORT time_t _timezone;
|
|
||||||
#else
|
|
||||||
extern __IMPORT long _timezone;
|
extern __IMPORT long _timezone;
|
||||||
#endif
|
|
||||||
extern __IMPORT int _daylight;
|
extern __IMPORT int _daylight;
|
||||||
extern __IMPORT char *_tzname[2];
|
extern __IMPORT char *_tzname[2];
|
||||||
|
|
||||||
@ -135,7 +131,7 @@ extern __IMPORT char *_tzname[2];
|
|||||||
#endif
|
#endif
|
||||||
#ifdef timezonevar
|
#ifdef timezonevar
|
||||||
#ifndef timezone
|
#ifndef timezone
|
||||||
#define timezone ((long int) _timezone)
|
#define timezone _timezone
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
char *_EXFUN(timezone, (void));
|
char *_EXFUN(timezone, (void));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user