From: David Edelsohn Date: Wed, 10 Jun 2020 12:14:39 +0000 (-0400) Subject: aix: Don't implicitly include inttypes.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c61f678a4f4d8d5f09fa59bb93fe6eacd1d5346d;p=gcc.git 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. --- 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 . */