Reported by <nroycea+gnu@gmail.com> in
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78376>.
* lib/fts_.h (__GNUC_PREREQ): Define macro on clang or if the system
does not define it.
+2025-05-11 Collin Funk <collin.funk1@gmail.com>
+
+ fts: Make sure __GNU_PREREQ is defined (regression yesterday).
+ Reported by <nroycea+gnu@gmail.com> in
+ <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78376>.
+ * lib/fts_.h (__GNUC_PREREQ): Define macro on clang or if the system
+ does not define it.
+
2025-05-10 Bruno Haible <bruno@clisp.org>
string-desc: Fixes for string literals and older GCC versions.
# include <sys/cdefs.h>
# endif
# define __FLEXIBLE_ARRAY_MEMBER FLEXIBLE_ARRAY_MEMBER
+# if defined __clang__
+ /* clang really only groks GNU C 4.2, regardless of its value of __GNUC__. */
+# undef __GNUC_PREREQ
+# define __GNUC_PREREQ(maj, min) ((maj) < 4 + ((min) <= 2))
+# endif
+# ifndef __GNUC_PREREQ
+# if defined __GNUC__ && defined __GNUC_MINOR__
+# define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__))
+# else
+# define __GNUC_PREREQ(maj, min) 0
+# endif
+# endif
# ifndef __THROW
# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
# if __cplusplus >= 201103L