Fix a #if error that causes a build failure on Linux/PowerPC with glibc-2.3.6.
authorBruno Haible <bruno@clisp.org>
Sat, 14 Jul 2007 00:09:08 +0000 (00:09 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 14 Jul 2007 00:09:08 +0000 (00:09 +0000)
ChangeLog
lib/vasnprintf.c

index b1c7ed2..d7047a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-07-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (decimal_point_char): Define also if
+       (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
+       && !NEED_PRINTF_DIRECTIVE_A.
+       Reported by Clemens Koller <clemens.koller@anagramm.de> via
+       Gary V. Vaughan <gary@gnu.org>.
+
 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/inttypes_.h: Undo previous change, since it was fixed
index 41076b3..f563823 100644 (file)
@@ -200,7 +200,7 @@ local_wcslen (const wchar_t *s)
 /* Here we need to call the native sprintf, not rpl_sprintf.  */
 #undef sprintf
 
-#if NEED_PRINTF_DIRECTIVE_A && !defined IN_LIBINTL
+#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
 /* Determine the decimal-point character according to the current locale.  */
 # ifndef decimal_point_char_defined
 #  define decimal_point_char_defined 1