* lib/stdbool.in.h (_Bool, bool, false, true): In C++ mode with MSVC 14,
don't define these as macros.
+2022-09-04 Bruno Haible <bruno@clisp.org>
+
+ stdbool: Fix compilation error in C++ mode with MSVC 14.
+ * lib/stdbool.in.h (_Bool, bool, false, true): In C++ mode with MSVC 14,
+ don't define these as macros.
+
2022-09-04 Bruno Haible <bruno@clisp.org>
fts: Fix compilation error with MSVC 14.
#endif
#ifdef __cplusplus
-# define _Bool bool
-# define bool bool
+# if !defined _MSC_VER
+# define _Bool bool
+# define bool bool
+# endif
#else
# if defined __BEOS__ && !defined __HAIKU__
/* A compiler known to have 'bool'. */
/* The other macros must be usable in preprocessor directives. */
#ifdef __cplusplus
-# define false false
-# define true true
+# if !defined _MSC_VER
+# define false false
+# define true true
+# endif
#else
# define false 0
# define true 1