* lib/stdbool.in.h (true): Redefine if it does not evaluate to 1 in the
preprocessor.
+2022-09-18 Bruno Haible <bruno@clisp.org>
+
+ stdbool: Ensure that 'true' can be used in the preprocessor.
+ * lib/stdbool.in.h (true): Redefine if it does not evaluate to 1 in the
+ preprocessor.
+
2022-09-18 Bruno Haible <bruno@clisp.org>
signal: Fix a C++ compilation error due to sched_yield on OpenBSD 6.0.
# define false false
# define true true
# endif
+/* In Sun C++ 5.11 (Solaris Studio 12.2) and older, 'true' as a preprocessor
+ expression evaluates to 0, not 1. Fix this by overriding 'true'. Note that
+ the replacement has to be of type 'bool'. */
+# if defined __SUNPRO_CC && true != 1
+# undef true
+# define true (!false)
+# endif
#else
# define false 0
# define true 1