+2007-03-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
+ (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
+ * modules/vasnprintf (Depends-on): Add stdint.
+
2007-03-25 Bruno Haible <bruno@clisp.org>
* modules/fpieee: New file.
#include <stddef.h>
/* Get intmax_t. */
-#if HAVE_STDINT_H_WITH_UINTMAX
+#ifdef IN_LIBINTL
+# if HAVE_STDINT_H_WITH_UINTMAX
+# include <stdint.h>
+# endif
+# if HAVE_INTTYPES_H_WITH_UINTMAX
+# include <inttypes.h>
+# endif
+#else
# include <stdint.h>
#endif
-#if HAVE_INTTYPES_H_WITH_UINTMAX
-# include <inttypes.h>
-#endif
/* malloc(), realloc(), free(). */
#include <stdlib.h>
flags += 8;
cp++;
}
-#if HAVE_INTMAX_T
else if (*cp == 'j')
{
if (sizeof (intmax_t) > sizeof (long))
}
cp++;
}
-#endif
else if (*cp == 'z' || *cp == 'Z')
{
/* 'z' is standardized in ISO C 99, but glibc uses 'Z'