* m4/assert_h.m4 (gl_ASSERT_H): Arrange for <config.h> to not
include <assert.h> if assert is already defined. This works
around bugs in packages that mistakenly include <config.h> after
including <assert.h> (typically due to double-inclusion of
<config.h>). Found in coreutils, which I plan to fix.
2022-09-14 Paul Eggert <eggert@cs.ucla.edu>
+ assert-h: work around include confusion
+ * m4/assert_h.m4 (gl_ASSERT_H): Arrange for <config.h> to not
+ include <assert.h> if assert is already defined. This works
+ around bugs in packages that mistakenly include <config.h> after
+ including <assert.h> (typically due to double-inclusion of
+ <config.h>). Found in coreutils, which I plan to fix.
+
stdbool: depend on C99
Record that stdbool depends on C99 these days.
This matters only for ancient compilers that need special
dnl including assert.h. Break the #undef apart with a comment
dnl so that 'configure' does not comment it out.
AH_VERBATIM([zzstatic_assert],
-[#if (!defined HAVE_C_STATIC_ASSERT \
+[#if (!defined HAVE_C_STATIC_ASSERT && !defined assert \
&& __cpp_static_assert < 201411 && __GNUG__ < 6)
#include <assert.h>
#undef/**/assert