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

Masahiro Yamada yamada.m at jp.panasonic.com
Tue Nov 19 05:37:17 CET 2013


Hi.

I posted v2 of this patch
http://patchwork.ozlabs.org/patch/292258/


I think both of two solutions work.

 (1) include <stdbool.h> in common/cmd_test.c
      but undef true and false.
     http://patchwork.ozlabs.org/patch/292247/

 (2) Do not include <stdbool.h> and 
       define true and false with enum.
     http://patchwork.ozlabs.org/patch/292258/


Personally, I prefer (2) to (1) because
 -  we don't need to tweak common/cmd_test.c any more
 -  we can reduce the conflict if we have a plan to update
      Linux-originated header files.


Best Regards
Masahiro Yamada



More information about the U-Boot mailing list