In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/7ea096df5f40b4bb14879699f74bf1f11a856b55?hp=627510b11d7a4925a6f435aafb8429aac5174e9d>
- Log ----------------------------------------------------------------- commit 7ea096df5f40b4bb14879699f74bf1f11a856b55 Author: Lukas Mai <[email protected]> Date: Mon Dec 1 23:12:00 2014 -0500 static_assert workaround for AIX/xlc ----------------------------------------------------------------------- Summary of changes: perl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl.h b/perl.h index 6e5d6d2..e8e268e 100644 --- a/perl.h +++ b/perl.h @@ -3510,10 +3510,11 @@ typedef pthread_key_t perl_key; /* placeholder */ #endif -#if defined(static_assert) || (defined(__cplusplus) && __cplusplus >= 201103L) +#if (defined(static_assert) || (defined(__cplusplus) && __cplusplus >= 201103L)) && (!defined(__IBMC__) || __IBMC__ >= 1210) /* static_assert is a macro defined in <assert.h> in C11 or a compiler builtin in C++11. */ +/* IBM XL C V11 does not support _Static_assert, no matter what <assert.h> says */ # define STATIC_ASSERT_GLOBAL(COND) static_assert(COND, #COND) #else /* We use a bit-field instead of an array because gcc accepts -- Perl5 Master Repository
