[U-Boot] [PATCH] Introduce a global bool type
Wolfgang Denk
wd at denx.de
Tue Jan 8 22:39:27 CET 2013
Dear York Sun,
In message <50EC79E1.1080802 at freescale.com> you wrote:
>
> No disagree. How shall we close this? Will some change like below
> acceptable?
>
> diff --git a/include/linux/types.h b/include/linux/types.h
> index 925ece7..f07ba41 100644
> --- a/include/linux/types.h
> +++ b/include/linux/types.h
> @@ -7,6 +7,7 @@
>
> #include <linux/posix_types.h>
> #include <asm/types.h>
> +#include <stdbool.h>
Yes, but it needs to be tested that this is working for at least the
most popular tool chains, including when using USE_PRIVATE_LIBGCC.
> #ifndef __KERNEL_STRICT_NAMES
>
> @@ -113,10 +114,6 @@ typedef __u64 u_int64_t;
> typedef __s64 int64_t;
> #endif
>
> -typedef _Bool bool;
> -#define false 0
> -#define true 1
> -
Yes, but similar removals are needed in a nomber of other header
files as well.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hindsight is an exact science.
More information about the U-Boot
mailing list