* m4/assert_h.m4 (gl_ASSERT_H): After including <assert.h>, on Solaris,
redefine static_assert.
+2022-10-23 Bruno Haible <bruno@clisp.org>
+
+ assert-h: Make static_assert work on Solaris 11.4.
+ * m4/assert_h.m4 (gl_ASSERT_H): After including <assert.h>, on Solaris,
+ redefine static_assert.
+
2022-10-16 Bruno Haible <bruno@clisp.org>
getdelim: Work around buggy implementation on macOS 10.13.
&& __GNUG__ < 6 && __clang_major__ < 6)))
#include <assert.h>
#undef/**/assert
+ /* 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
+ #define static_assert _Static_assert
+ #endif
#endif])
])