* m4/assert_h.m4 (gl_ASSERT_H): Also break apart "#undef static_assert" with /**/. Problem discovered with xlclang 16.1, though it does not directly affect xlclang 16.1. --- ChangeLog | 5 +++++ m4/assert_h.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index 866a405d4a..b3b8ce5b9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2023-01-13 Paul Eggert <egg...@cs.ucla.edu> + assert-h: fix configure comment-out + * m4/assert_h.m4 (gl_ASSERT_H): Also break apart "#undef + static_assert" with /**/. Problem discovered with xlclang 16.1, + though it does not directly affect xlclang 16.1. + Don’t use alloc_size with xlclang 16.1 * m4/gnulib-common.m4 (_GL_HAS_ATTRIBUTE): Require Clang 5 instead of 3.5 for this, to pacify xlclang 16.1.0 on AIX 7.2, which diff --git a/m4/assert_h.m4 b/m4/assert_h.m4 index 6275f633a6..abba4fa3a1 100644 --- a/m4/assert_h.m4 +++ b/m4/assert_h.m4 @@ -60,7 +60,7 @@ AC_DEFUN([gl_ASSERT_H], /* Solaris 11.4 <assert.h> defines static_assert as a macro with 2 arguments. We need it also to be invocable with a single argument. */ #if defined __sun && (__STDC_VERSION__ - 0 >= 201112L) && !defined __cplusplus - #undef static_assert + #undef/**/static_assert #define static_assert _Static_assert #endif #endif]) -- 2.37.2