From b23aebd94cf1fa2132dc05faa702279b4573d0b3 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sun, 6 Jun 2021 23:10:03 +0200 Subject: #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. --- gmp-impl.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gmp-impl.h') diff --git a/gmp-impl.h b/gmp-impl.h index ab12bc1ca..66ffbd6cb 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -154,10 +154,11 @@ see https://www.gnu.org/licenses/. */ #if HAVE_INTTYPES_H /* for uint_least32_t */ # include -#else -# if HAVE_STDINT_H -# include -# endif +#endif +/* On some platforms inttypes.h exists but is incomplete + and we still need stdint.h. */ +#if HAVE_STDINT_H +# include #endif #ifdef __cplusplus -- cgit v1.2.1