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.
This commit is contained in:
David Edelsohn 2020-06-10 08:14:39 -04:00
parent 444035eafa
commit c61f678a4f
1 changed files with 4 additions and 0 deletions

View File

@ -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>. */