From: Mike Frysinger Date: Sat, 17 Sep 2011 19:56:50 -0400 Subject: [U-Boot] [RFC PATCH 03/20] sandbox: Add compiler defines to support a 64-bit x86_64 platform In-Reply-To: <1316278139-28635-4-git-send-email-sjg@chromium.org> References: <1316278139-28635-2-git-send-email-sjg@chromium.org> <1316278139-28635-4-git-send-email-sjg@chromium.org> Message-ID: <201109171956.52651.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday, September 17, 2011 12:48:42 Simon Glass wrote: > Temporary fix for 64-bit building. why is it temporary ? why not fix it permanently ? > --- a/include/compiler.h > +++ b/include/compiler.h > > #include > #include > > +#if __SIZEOF_LONG__ == 8 > +# define __WORDSIZE 64 > +#elif __SIZEOF_LONG__ == 4 > +# define __WORDSIZE 32 > +#else > +#error "__SIZEOF_LONG__ has unexpected value" > +#endif change "#else" to "#elif !defined __WORDSIZE" -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110917/e1980e38/attachment.pgp