* tests/test-stdbool.c (WORKING_BOOL): Define to 0 on compilers that
define _MSC_VER.
+2022-09-19 Bruno Haible <bruno@clisp.org>
+
+ stdbool tests: Fix compilation error with clang/MSVC.
+ * tests/test-stdbool.c (WORKING_BOOL): Define to 0 on compilers that
+ define _MSC_VER.
+
2022-09-18 Bruno Haible <bruno@clisp.org>
stdbool: Ensure that 'true' can be used in the preprocessor.
/* Several tests cannot be guaranteed with gnulib's <stdbool.h>, at
least, not for all compilers and compiler options. */
-#if (202311 <= __STDC_VERSION__ || defined __cplusplus \
- || HAVE_STDBOOL_H || 3 <= __GNUC__ || 4 <= __clang_major__)
+#if ((202311 <= __STDC_VERSION__ || defined __cplusplus \
+ || HAVE_STDBOOL_H || 3 <= __GNUC__ || 4 <= __clang_major__) \
+ && !defined _MSC_VER)
# define WORKING_BOOL 1
#else
# define WORKING_BOOL 0