Mercurial > hg > octave-nkf > gnulib-hg
diff lib/printf-parse.c @ 8551:a2ed636e1b10
Support 'j' size specifier on all platforms.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 26 Mar 2007 00:14:00 +0000 (2007-03-26) |
parents | 9c2b0396b27c |
children | 359d135f748c |
line wrap: on
line diff
--- a/lib/printf-parse.c +++ b/lib/printf-parse.c @@ -28,12 +28,16 @@ #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> @@ -326,7 +330,6 @@ flags += 8; cp++; } -#if HAVE_INTMAX_T else if (*cp == 'j') { if (sizeof (intmax_t) > sizeof (long)) @@ -341,7 +344,6 @@ } cp++; } -#endif else if (*cp == 'z' || *cp == 'Z') { /* 'z' is standardized in ISO C 99, but glibc uses 'Z'