Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-02-24 01:20:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-02-24 01:20:55 +0300
commit39fd43d7fa9fe9e167a033650b3eec29e6e7d576 (patch)
tree0f003eeb25f0be6c4931ed42c0b439490351fee2
parentd0578adf88c42217f497701271faa2573a37e910 (diff)
* libc/include/time.h (_timezone): Change to long also for Cygwin.
(timezone): Drop cast from definition.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/time.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 38b5dc27e..1d9f30623 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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>
* libc/include/time.h [!CYGWIN](_timezone): Change to long.
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index be2cb45c4..83977d2d2 100644
--- a/newlib/libc/include/time.h
+++ b/newlib/libc/include/time.h
@@ -115,11 +115,7 @@ 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];
@@ -135,7 +131,7 @@ extern __IMPORT char *_tzname[2];
#endif
#ifdef timezonevar
#ifndef timezone
-#define timezone ((long int) _timezone)
+#define timezone _timezone
#endif
#else
char *_EXFUN(timezone, (void));