* lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
define like for GCC 3.
+2020-08-11 Bruno Haible <bruno@clisp.org>
+
+ Use flexible array syntax also on clang.
+ * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
+ define like for GCC 3.
+
2020-08-11 Bruno Haible <bruno@clisp.org>
fcntl: On native Windows, use _setmode, not setmode.
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __HP_cc
# define __flexarr []
# define __glibc_c99_flexarr_available 1
-#elif __GNUC_PREREQ (2,97)
-/* GCC 2.97 supports C99 flexible array members as an extension,
+#elif __GNUC_PREREQ (2,97) || defined __clang__
+/* GCC 2.97 and clang support C99 flexible array members as an extension,
even when in C89 mode or compiling C++ (any version). */
# define __flexarr []
# define __glibc_c99_flexarr_available 1