X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fcompiler.h;h=ed74c272b8c507b99e234369a81bf047a7ab9fc9;hb=84897408c688e3d3962e8cd7e92f3ad99c17005d;hp=957f4b5d49a872f4642f0c2d34587a1a0abe1252;hpb=f29aa23b54e26d212cc61c07bcbb66ed5d6f9704;p=oweals%2Fu-boot.git diff --git a/include/compiler.h b/include/compiler.h index 957f4b5d49..ed74c272b8 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -46,7 +46,6 @@ # include #elif defined(__MACH__) || defined(__FreeBSD__) # include -typedef unsigned long ulong; #endif #ifdef __FreeBSD__ # include /* htole32 and friends */ @@ -66,6 +65,7 @@ typedef uint8_t __u8; typedef uint16_t __u16; typedef uint32_t __u32; typedef unsigned int uint; +typedef unsigned long ulong; #define uswap_16(x) \ ((((x) & 0xff00) >> 8) | \ @@ -120,13 +120,8 @@ typedef unsigned int uint; #else /* !USE_HOSTCC */ -#ifdef CONFIG_USE_STDINT -/* Provided by gcc. */ -#include -#else /* Type for `void *' pointers. */ typedef unsigned long int uintptr_t; -#endif #include #include @@ -149,4 +144,8 @@ typedef unsigned long int uintptr_t; #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) +#ifdef __LP64__ +#define MEM_SUPPORT_64BIT_DATA +#endif + #endif