From: Wolfgang Denk Date: Tue, 08 Jan 2013 22:39:27 +0100 Subject: [U-Boot] [PATCH] Introduce a global bool type In-Reply-To: <50EC79E1.1080802@freescale.com> References: <1357596628-27501-1-git-send-email-yorksun@freescale.com> <20130107223942.94BED20DA7E@gemini.denx.de> <6AE080B68D46FC4BA2D2769E68D765B70820541F@039-SN2MPN1-023.039d.mgd.msft.net> <20130108174920.BAB22202B69@gemini.denx.de> <50EC5D29.1070408@freescale.com> <20130108190715.D2D14202B69@gemini.denx.de> <50EC79E1.1080802@freescale.com> Message-ID: <20130108213927.88EDB202B69@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear York Sun, In message <50EC79E1.1080802@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 > #include > +#include 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.