aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-04-19 15:54:47 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-04-19 15:54:47 +0000
commitee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26 (patch)
treed50cee0e5ac75d4d4d29c8f45a80e0ba34237761 /newlib/libc/include
parent3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 (diff)
downloadnewlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.zip
newlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.tar.gz
newlib-ee9f39fb3a7d6d13c4a5f1af590a5df4eeecbb26.tar.bz2
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.)
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/time.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index 261a5c6..f8bb53e 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__ */