Albert Chin <[EMAIL PROTECTED]> writes: > On Fri, Nov 25, 2005 at 11:11:05PM -0800, Paul Eggert wrote: >> +#if defined __cplusplus || defined __BEOS__ >> typedef bool _Bool; >> +#else > > This will break on C++ compilers with bool _and_ _Bool, like the HP-UX > 11.23/IA-64 aCC6 compiler.
I assume the following further patch would fix this? If so, I can prepare a standalone patch along these lines. --- stdbool_.h.~1.6.~ 2005-11-25 22:16:30.000000000 -0800 +++ stdbool_.h 2005-11-27 22:13:52.000000000 -0800 @@ -59,10 +59,10 @@ # 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; @@ -88,7 +88,9 @@ 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 _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib