OSDN Git Service

* include/cygwin/time.h: Switch to timezone variable by default. Add
authorcorinna <corinna>
Wed, 4 Jul 2007 09:56:14 +0000 (09:56 +0000)
committercorinna <corinna>
Wed, 4 Jul 2007 09:56:14 +0000 (09:56 +0000)
comment.

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/time.h

index 5f092f7..3707a8a 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
+
+       * include/cygwin/time.h: Switch to timezone variable by default.  Add
+       comment.
+
 2007-06-29  Corinna Vinschen  <corinna@vinschen.de>
 
        * cygwin.din: Export fdopendir.
index 4a482d7..2f84505 100644 (file)
@@ -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