
18 Sep
2011
18 Sep
'11
1:56 a.m.
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