diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-02 23:01:49 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-02 23:01:49 +0000 |
commit | 8f1baf26b5af84f3550beb22de1eecf6b877b428 (patch) | |
tree | f05c9cb70fc53cb5f980a6f50cd54d2536ef4cd6 /fixincludes/inclhack.def | |
parent | 2701a3fd770a28bf33d81dfca6ba47b163c38023 (diff) | |
download | gcc-8f1baf26b5af84f3550beb22de1eecf6b877b428.tar.gz |
* inclhack.def (aix_assert): New fix.
* fixincl.x: Regenerate.
* tests/base/assert.h [AIX_ASSERT_CHECK]: New check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202192 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index c92170f4cd9..996356a3930 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -569,6 +569,20 @@ fix = { }; /* + * assert.h on AIX 7 redefines static_assert as _Static_assert without + * protecting C++. + */ +fix = { + hackname = aix_assert; + mach = "*-*-aix*"; + files = assert.h; + select = "#define[ \t]static_assert[ \t]_Static_assert"; + c_fix = format; + c_fix_arg = "#ifndef __cplusplus\n%0\n#endif"; + test_text = "#define static_assert _Static_assert"; +}; + +/* * complex.h on AIX 5 and AIX 6 define _Complex_I and I in terms of __I, * which only is provided by AIX xlc C99. */ |