Tweak to make it usable in gettext's libasprintf.
author |
Bruno Haible <bruno@clisp.org> |
date |
Sun, 21 Oct 2007 22:37:10 +0200 |
parents |
8234757e613a |
children |
5e34c0f32acf |
files |
ChangeLog lib/printf-parse.c |
diffstat |
2 files changed, 6 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
--- a/lib/printf-parse.c
+++ b/lib/printf-parse.c
@@ -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