changeset 9626:def4f669ceac

Fix problem with getdate on mingw32 reported by Simon Josefsson in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>. * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined tzname", when deciding whether to declare tzname. * lib/strftime.c (tzname): Likewise.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 15 Jan 2008 16:32:59 -0800
parents a64830157230
children 5d966818e300
files ChangeLog lib/getdate.y lib/strftime.c
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+	Fix problem with getdate on mingw32 reported by Simon Josefsson
+	in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
+	* lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
+	tzname", when deciding whether to declare tzname.
+	* lib/strftime.c (tzname): Likewise.
+
 2008-01-15  Bruno Haible  <bruno@clisp.org>
 
 	Work around a MacOS X 10.5 bug in frexpl().
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -1321,7 +1321,7 @@
 #else
 #if HAVE_TZNAME
   {
-# ifndef tzname
+# if !HAVE_DECL_TZNAME
     extern char *tzname[];
 # endif
     int i;
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -37,7 +37,7 @@
 #include <ctype.h>
 #include <time.h>
 
-#if HAVE_TZNAME && ! defined tzname
+#if HAVE_TZNAME && !HAVE_DECL_TZNAME
 extern char *tzname[];
 #endif