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>2007-07-04 13:56:15 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-07-04 13:56:15 +0400
commit0d9cddc377a6594e2e970262491f3beeebd860dc (patch)
tree43ad3d820cfbe3bde2e19f05ab986de7d3d0e75d /winsup/cygwin/include
parentee5dec125ddf74bfbe0e77f17b3e207019edcd1c (diff)
* include/cygwin/time.h: Switch to timezone variable by default. Add
comment.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/time.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h
index 4a482d78f..2f84505f5 100644
--- a/winsup/cygwin/include/cygwin/time.h
+++ b/winsup/cygwin/include/cygwin/time.h
@@ -29,7 +29,9 @@ time_t __cdecl timegm (struct tm *);
# define daylight _daylight
# endif
-# ifndef timezonevar
+/* The timezone function is only kept for backward compatibility.
+ POSIX expects the timezone variable as XSI extension. */
+# ifdef __timezonefunc__
char __cdecl *timezone (void);
# elif !defined(timezone)
# define timezone _timezone