From c61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 10 Jun 2020 08:14:39 -0400 Subject: [PATCH] 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 * gcc.dg/spellcheck-inttypes.c: Don't include inttypes.h on AIX. --- gcc/testsuite/gcc.dg/spellcheck-inttypes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.dg/spellcheck-inttypes.c b/gcc/testsuite/gcc.dg/spellcheck-inttypes.c index 56dc2f3dcfd..1146a7cff5b 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 #include /* Missing . */ -- 2.30.2