[U-Boot] [PATCH] include: define bool type in a more portable way
Måns Rullgård
mans at mansr.com
Mon Nov 18 17:39:19 CET 2013
Tom Rini <trini at ti.com> writes:
> On Mon, Nov 18, 2013 at 05:28:56PM +0100, Wolfgang Denk wrote:
>> Dear Masahiro Yamada,
>>
>> In message <1384770105-32364-1-git-send-email-yamada.m at jp.panasonic.com> you wrote:
>> > Currently U-boot defins bool type by including <stdbool.h>
>> > rather than defining directly.
>> > But it does not work for some cross compilers.
>>
>> Can you explain why this fails?
>>
>> AFAICT, <stdbool.h> is a compiler provided header file, which is
>> mandatory by the C99 ISO standard. So if a compiler fails to work
>> using it, it looks as if the compiler was broken.
>
> Indeed. And the very ancient but (as far as I know) still "latest" gcc
> for the SPARC port, which is 3.4.4, has it. So if there's a problem
> here with blackfin it feels strongly like a toolchain issue.
FWIW, my Blackfin cross-gcc has a correct stdbool.h. Even gcc 2.95 has it.
--
Måns Rullgård
mans at mansr.com
More information about the U-Boot
mailing list