]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix syntax errors in libintl build on mingw.
authorBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 09:16:57 +0000 (11:16 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 10:54:20 +0000 (12:54 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/vasnprintf.c
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/vasnprintf.c

index f204d787cb4ab13496372b79d33b19162901520a..78da53513f0c0bcb346858cd502366d435aa3ff6 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix syntax errors in libintl build on mingw.
+       * vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
+       pad_ourselves and prec_ourselves after use.
+
 2010-04-03  Bruno Haible  <bruno@clisp.org>
 
        localename: Port to MacOS X 10.6.
index 82d4b94c88106401489fc218a8c454e1cbf0585f..8a07ca6e72da1331e3bf1a741aaa6efbf80085ac 100644 (file)
@@ -2890,8 +2890,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')
@@ -5499,6 +5499,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                     length += count;
                     break;
                   }
+#undef pad_ourselves
+#undef prec_ourselves
               }
           }
       }
index 56172691605d780d52a4f77b74581b65a9ba289d..18e547ed29ab2e337ee80ee0ab53116d518887a1 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix syntax errors in libintl build on mingw.
+       * vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
+       pad_ourselves and prec_ourselves after use.
+
 2010-04-24  Bruno Haible  <bruno@clisp.org>
 
        vasnprintf: Correct errno value in case of out-of-memory.
index 82d4b94c88106401489fc218a8c454e1cbf0585f..8a07ca6e72da1331e3bf1a741aaa6efbf80085ac 100644 (file)
@@ -2890,8 +2890,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')
@@ -5499,6 +5499,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                     length += count;
                     break;
                   }
+#undef pad_ourselves
+#undef prec_ourselves
               }
           }
       }