Tweak to make it usable in gettext's libasprintf.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Oct 2007 20:37:10 +0000 (22:37 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Oct 2007 20:37:10 +0000 (22:37 +0200)
ChangeLog
lib/printf-parse.c

index 3dbaf13..37217c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-10-21  Bruno Haible  <bruno@clisp.org>
 
+       * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
+       context.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
        * tests/test-wcwidth.c (main): Allow negative result for some control
        characters.
 
index 2e67980..9e9880c 100644 (file)
@@ -49,7 +49,7 @@
 #include <stddef.h>
 
 /* Get intmax_t.  */
-#ifdef IN_LIBINTL
+#if defined IN_LIBINTL || defined IN_LIBASPRINTF
 # if HAVE_STDINT_H_WITH_UINTMAX
 #  include <stdint.h>
 # endif