[U-Boot] [PATCH] include: define bool type in a more portable way

Tom Rini trini at ti.com
Mon Nov 18 17:32:38 CET 2013


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.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131118/42c38871/attachment.pgp>


More information about the U-Boot mailing list