aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-06-10 08:14:39 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2020-06-11 08:53:16 -0400
commitc61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d (patch)
treea8fe9e962d44deb229912b38488d2a7ee6570297
parent444035eafa2fbabbb1261f258bfd41e8051aab34 (diff)
downloadgcc-c61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d.zip
gcc-c61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d.tar.gz
gcc-c61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d.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>. */