summaryrefslogtreecommitdiff
path: root/m4/assert_h.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-11-26 10:49:04 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-11-26 10:56:53 -0800
commitb27e8f26284770162cc9e9d95d4d273902d35927 (patch)
tree4d51d3b369f849c8ef5f0f9d58ea0779f63e2519 /m4/assert_h.m4
parentd440ca47ed6251f134e87386853798228983dd85 (diff)
downloademacs-b27e8f26284770162cc9e9d95d4d273902d35927.tar.gz
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'm4/assert_h.m4')
-rw-r--r--m4/assert_h.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/assert_h.m4 b/m4/assert_h.m4
index c1306daef4f..e892ea2f01b 100644
--- a/m4/assert_h.m4
+++ b/m4/assert_h.m4
@@ -57,5 +57,11 @@ AC_DEFUN([gl_ASSERT_H],
&& __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])
])