This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libbanshee also using a broken AC_HEADER_STDBOOL


Andreas Schwab <schwab@suse.de> writes:

> Zack Weinberg <zack@codesourcery.com> writes:
>
>> Andreas Schwab <schwab@suse.de> writes:
>>
>>> Zack Weinberg <zack@codesourcery.com> writes:
>>>
>>>> Better, I think, to make libiberty.h unconditionally
>>>>
>>>> #define bool unsigned char
>>>> #define true 1
>>>> #define false 0
>>>
>>> Except that the use of bool, true, false should probably be avoided then.
>>> The standard says that the ability to redefine them is an obsolescent
>>> feature.
>>
>> The C standard says no such thing.
>
> Future library directions, 7.26.7.

It says "the ability to *undefine and then perhaps then redefine* the
macros" is an obsolescent feature.  (emphasis mine)  This obviously
only applies to code that includes <stdbool.h> in the first place.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]