[PATCH] add bool types support

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 2 02:32:22 EST 2009


On Fri, Oct 30, 2009 at 10:55:06PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  include/linux/types.h |    1 +
>  include/xyzModem.h    |    5 -----
>  2 files changed, 1 insertions(+), 5 deletions(-)

applied

Sascha

> 
> diff --git a/include/linux/types.h b/include/linux/types.h
> index 8646e03..2241364 100644
> --- a/include/linux/types.h
> +++ b/include/linux/types.h
> @@ -16,6 +16,7 @@ typedef __kernel_pid_t		pid_t;
>  typedef __kernel_daddr_t	daddr_t;
>  typedef __kernel_key_t		key_t;
>  typedef __kernel_suseconds_t	suseconds_t;
> +typedef _Bool			bool;
>  
>  #ifdef __KERNEL__
>  typedef __kernel_uid32_t	uid_t;
> 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
>  
> -- 
> 1.6.5
> 
> 
> _______________________________________________
> u-boot-v2 mailing list
> u-boot-v2 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/u-boot-v2
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the u-boot-v2 mailing list