+2005-12-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ * stdbool_.h (_Bool): Resurrect the "#if !@HAVE__BOOL@" check, to
+ work around compilers that have a (possibly-broken) _Bool but lack
+ a working <stdbool.h>.
+
2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
* stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
# include <OS.h> /* defines bool but not _Bool */
#endif
-/* C++ and BeOS have a reliable _Bool. Otherwise, since this file is
- being compiled, the system <stdbool.h> is not reliable so assume
- that the system _Bool is not reliable either. Under that
- assumption, it is tempting to write
+/* C++ and BeOS have a reliable bool (and _Bool, if it exists).
+ Otherwise, since this file is being compiled, the system
+ <stdbool.h> is not reliable so assume that the system _Bool is not
+ reliable either. Under that assumption, it is tempting to write
typedef enum { false, true } _Bool;
existing definition of _Bool and use our own. */
#if defined __cplusplus || defined __BEOS__
+# if !@HAVE__BOOL@
typedef bool _Bool;
+# endif
#else
# define _Bool signed char
#endif