vasnprintf: Fix syntax errors in libintl build on mingw.
authorBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 09:14:46 +0000 (11:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 09:14:46 +0000 (11:14 +0200)
ChangeLog
lib/vasnprintf.c

index 6bd0b3e..d4a6a53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix syntax errors in libintl build on mingw.
+       * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
+       pad_ourselves and prec_ourselves after use.
+
 2010-05-08  Bruno Haible  <bruno@clisp.org>
 
        * lib/config.charset: Update comments for Cygwin 1.7.
index 836bf10..41c6271 100644 (file)
@@ -2889,8 +2889,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                       length += n;
                     }
                 }
-              }
 # endif
+              }
 #endif
 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL
             else if ((dp->conversion == 'a' || dp->conversion == 'A')
@@ -5498,6 +5498,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                     length += count;
                     break;
                   }
+#undef pad_ourselves
+#undef prec_ourselves
               }
           }
       }