summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2021-06-06 23:10:03 +0200
committerMarc Glisse <marc.glisse@inria.fr>2021-06-06 23:10:03 +0200
commitb23aebd94cf1fa2132dc05faa702279b4573d0b3 (patch)
treeb3830c68321f0c20a05116c0b1ea03ba4188526f /gmp-impl.h
parent6e2405b086ddba4d04646df25491b36a6eea13c3 (diff)
downloadgmp-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 'gmp-impl.h')
-rw-r--r--gmp-impl.h9
1 files changed, 5 insertions, 4 deletions
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 <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
+#endif
+/* On some platforms inttypes.h exists but is incomplete
+ and we still need stdint.h. */
+#if HAVE_STDINT_H
+# include <stdint.h>
#endif
#ifdef __cplusplus