* strftime.c (tzname): Don't declare if it is already #defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jan 2006 18:55:42 +0000 (18:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jan 2006 18:55:42 +0000 (18:55 +0000)
Problem reported for Mingw by Mark Junker.

lib/ChangeLog
lib/strftime.c

index 25b0cdf7c0a9290be7fbadb2d74d643f2544a72d..00f074a408e75140a4322c31b9f284dd967c166b 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * strftime.c (tzname): Don't declare if it is already #defined.
+       Problem reported for Mingw by Mark Junker.
+
 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
index d740ae018d8f326651df78d0a6ea674f1d7e34e3..13c8acc8518f12e82b70d6e221afe37884557eab 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000, 2001, 2003, 2004, 2005 Free Software
+/* Copyright (C) 1991-1999, 2000, 2001, 2003, 2004, 2005, 2006 Free Software
    Foundation, Inc.
 
    NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -47,7 +47,7 @@
 #  include <time.h>
 # endif
 #endif
-#if HAVE_TZNAME
+#if HAVE_TZNAME && ! defined tzname
 extern char *tzname[];
 #endif