X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fcompiler.h;h=9afc11be1942d6b9e2c4ba19ed059fd288447685;hb=d0ea61d9caf85e4285d5c2da508db9fac70e4aba;hp=54999a7e82d056c656d24259d9aa7e6ba167180e;hpb=1b81f017b04b5a176f5f9230ec979f0f3c55ba5b;p=u-boot diff --git a/include/compiler.h b/include/compiler.h index 54999a7e82..9afc11be19 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -48,6 +48,7 @@ # include typedef unsigned long ulong; #endif +#include typedef uint8_t __u8; typedef uint16_t __u16; @@ -123,16 +124,10 @@ typedef unsigned int uint; #define __WORDSIZE 32 #endif -/* Types for `void *' pointers. */ -#if __WORDSIZE == 64 -typedef unsigned long int uintptr_t; -#elif __WORDSIZE == 32 -typedef unsigned int uintptr_t; -#else -#error "__WORDSIZE has unexpected value" -#endif +/* Type for `void *' pointers. */ +typedef unsigned long int uintptr_t; -#endif +#endif /* USE_HOSTCC */ /* compiler options */ #define uninitialized_var(x) x = x