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:
authorJeff Johnston <jjohnstn@redhat.com>2001-04-19 19:54:47 +0400
committerJeff Johnston <jjohnstn@redhat.com>2001-04-19 19:54:47 +0400
commitee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26 (patch)
treed50cee0e5ac75d4d4d29c8f45a80e0ba34237761
parent3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 (diff)
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/ChangeLog7
-rw-r--r--newlib/libc/include/time.h14
2 files changed, 20 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index fe1108aca..1200ab9f4 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 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__ */