gcc's <stdbool.h> is broken
Jason Merrill
jason@redhat.com
Tue Feb 6 05:11:00 GMT 2001
>>>>> "Zack" == Zack Weinberg <zackw@Stanford.EDU> writes:
>> > However, with these definitions, true and false do not work in #if
>> > expressions in C++ even after including stdbool.h. It is desirable
>> > that they do work, for maximum compatibility between C99 and C++, and
>> > there's no reason why they shouldn't be known to the C++ preprocessor
>> > at all times.
>>
>> OK. Is it known that the C++ people intend them to work in CPP
>> expressions in the future? I'm just a bit wary of yet another
>> extension, particularly in this area, since they are quite different
>> and ...
> I don't know, but hopefully the C++ folks will.
The C++ committee has so far mostly avoided discussion of incorporating C99
extensions. Your approach makes sense to me.
Jason
More information about the Gcc-patches
mailing list