* lib/verify.h (static_assert): Override when using old versions of
clang++.
+2024-12-28 Bruno Haible <bruno@clisp.org>
+
+ assert-h, verify: Make static_assert work in C++ mode on FreeBSD 11.
+ * lib/verify.h (static_assert): Override when using old versions of
+ clang++.
+
2024-12-28 Bruno Haible <bruno@clisp.org>
endian: Fix compilation error on NetBSD 7.1.
# endif
# endif
/* Define static_assert if needed. */
+# if defined __cplusplus && defined __clang__ && __clang_major__ < 9
+/* clang++ before commit 5c739665a8721228cf6143fd4ef95870a59f55ae had a
+ two-arguments static_assert but not the one-argument static_assert. */
+# undef static_assert
+# endif
# if (!defined static_assert \
&& __STDC_VERSION__ < 202311 \
&& (!defined __cplusplus \