From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 7 Jan 2013 16:29:25 -0600 Subject: [U-Boot] [PATCH] Introduce a global bool type In-Reply-To: <1357596628-27501-1-git-send-email-yorksun@freescale.com> (from yorksun@freescale.com on Mon Jan 7 16:10:28 2013) References: <1357596628-27501-1-git-send-email-yorksun@freescale.com> Message-ID: <1357597765.1113.13@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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