[U-Boot] [RFC PATCH 03/20] sandbox: Add compiler defines to support a 64-bit x86_64 platform

Mike Frysinger
2011-09-17T23:56:50Z

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 <linux/types.h>
> #include <asm/byteorder.h>
>
> +#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