]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/compiler.h
powerpc/t104xrdb: Enable SPI flash Extend address support
[karo-tx-uboot.git] / include / compiler.h
index 54999a7e82d056c656d24259d9aa7e6ba167180e..9afc11be1942d6b9e2c4ba19ed059fd288447685 100644 (file)
@@ -48,6 +48,7 @@
 # include <machine/endian.h>
 typedef unsigned long ulong;
 #endif
+#include <time.h>
 
 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