aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-06-10 08:14:39 -0400
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:12:14 -0300
commitbda0f3681126fcacde92ef8d5f46b86e4d45c192 (patch)
tree0739818f073096ca9254947ce7f975339818a8d4
parentc6acfbe87bea4aea2e5e2ee7a08ad691c9e88b8a (diff)
downloadgcc-bda0f3681126fcacde92ef8d5f46b86e4d45c192.zip
gcc-bda0f3681126fcacde92ef8d5f46b86e4d45c192.tar.gz
gcc-bda0f3681126fcacde92ef8d5f46b86e4d45c192.tar.bz2
aix: Don't implicitly include inttypes.h
AIX stdio.h implicitly includes inttypes.h, which explicitly conflicts with the purpose of this testcase. This patch conditionally adds a macro definition that inhibits the implicit inclusion. gcc/testsuite/ChangeLog 2020-06-11 David Edelsohn <dje.gcc@gmail.com> * gcc.dg/spellcheck-inttypes.c: Don't include inttypes.h on AIX.
-rw-r--r--gcc/testsuite/gcc.dg/spellcheck-inttypes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/spellcheck-inttypes.c b/gcc/testsuite/gcc.dg/spellcheck-inttypes.c
index 56dc2f3..1146a7c 100644
--- a/gcc/testsuite/gcc.dg/spellcheck-inttypes.c
+++ b/gcc/testsuite/gcc.dg/spellcheck-inttypes.c
@@ -1,4 +1,8 @@
/* { dg-options "-std=c99" } */
+/* Prevent AIX from implicitly including inttypes.h. */
+#ifdef _AIX
+#define _H_INTTYPES_TYPE_TS
+#endif
#include <stdio.h>
#include <stdint.h>
/* Missing <inttypes.h>. */