[U-Boot] [PATCH] Introduce a global bool type
Scott Wood
scottwood at freescale.com
Mon Jan 7 23:29:25 CET 2013
On 01/07/2013 04:10:28 PM, York Sun wrote:
> diff --git a/include/linux/types.h b/include/linux/types.h
> index 1b0b4a4..b359c33 100644
> --- a/include/linux/types.h
> +++ b/include/linux/types.h
> @@ -113,6 +113,8 @@ typedef __u64 u_int64_t;
> typedef __s64 int64_t;
> #endif
>
> +typedef _Bool bool;
> +
> #endif /* __KERNEL_STRICT_NAMES */
>
> /*
> diff --git a/include/xyzModem.h b/include/xyzModem.h
> index f437bbd..9723e73 100644
> --- a/include/xyzModem.h
> +++ b/include/xyzModem.h
> @@ -97,11 +97,6 @@ typedef struct {
> #endif
> } connection_info_t;
>
> -#ifndef BOOL_WAS_DEFINED
> -#define BOOL_WAS_DEFINED
> -typedef unsigned int bool;
> -#endif
> -
> #define false 0
> #define true 1
Please also move the definition of true/false into a common header.
-Scott
More information about the U-Boot
mailing list