summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/misc/t-printf.c7
-rw-r--r--tests/misc/t-scanf.c7
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/misc/t-printf.c b/tests/misc/t-printf.c
index b0f6a30e6..ef104bad1 100644
--- a/tests/misc/t-printf.c
+++ b/tests/misc/t-printf.c
@@ -41,10 +41,9 @@ the GNU MP Library test suite. If not, 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_UNISTD_H
diff --git a/tests/misc/t-scanf.c b/tests/misc/t-scanf.c
index fdae5de1e..8b82f1e1d 100644
--- a/tests/misc/t-scanf.c
+++ b/tests/misc/t-scanf.c
@@ -39,10 +39,9 @@ the GNU MP Library test suite. If not, 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_UNISTD_H