diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2021-06-06 23:10:03 +0200 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2021-06-06 23:10:03 +0200 |
commit | b23aebd94cf1fa2132dc05faa702279b4573d0b3 (patch) | |
tree | b3830c68321f0c20a05116c0b1ea03ba4188526f /printf | |
parent | 6e2405b086ddba4d04646df25491b36a6eea13c3 (diff) | |
download | gmp-b23aebd94cf1fa2132dc05faa702279b4573d0b3.tar.gz |
#include stdint.h even if we have inttypes.h
It would be tempting to remove those includes from the files
that already include gmp-impl.h.
Diffstat (limited to 'printf')
-rw-r--r-- | printf/doprnt.c | 7 | ||||
-rw-r--r-- | printf/repl-vsnprintf.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/printf/doprnt.c b/printf/doprnt.c index fa3f3029f..3b8661393 100644 --- a/printf/doprnt.c +++ b/printf/doprnt.c @@ -45,10 +45,9 @@ see https://www.gnu.org/licenses/. */ #if HAVE_INTTYPES_H # include <inttypes.h> /* for intmax_t */ -#else -# if HAVE_STDINT_H -# include <stdint.h> -# endif +#endif +#if HAVE_STDINT_H +# include <stdint.h> #endif #if HAVE_LANGINFO_H diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c index d22867122..81b404d12 100644 --- a/printf/repl-vsnprintf.c +++ b/printf/repl-vsnprintf.c @@ -50,10 +50,9 @@ see https://www.gnu.org/licenses/. */ #if HAVE_INTTYPES_H # include <inttypes.h> /* for intmax_t */ -#else -# if HAVE_STDINT_H -# include <stdint.h> -# endif +#endif +#if HAVE_STDINT_H +# include <stdint.h> #endif #if HAVE_SYS_TYPES_H |