projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fastboot: sparse: fix sparse blocks calculation
[oweals/u-boot.git]
/
include
/
compiler.h
diff --git
a/include/compiler.h
b/include/compiler.h
index 14519163a32bfa13d2df16a22d66735b28b52138..47c296e202d1e97388d3207e4f0c2321831a2f87 100644
(file)
--- a/
include/compiler.h
+++ b/
include/compiler.h
@@
-48,6
+48,10
@@
# include <machine/endian.h>
typedef unsigned long ulong;
#endif
# include <machine/endian.h>
typedef unsigned long ulong;
#endif
+#ifdef __FreeBSD__
+# include <sys/endian.h> /* htole32 and friends */
+#endif
+
#include <time.h>
typedef uint8_t __u8;
#include <time.h>
typedef uint8_t __u8;
@@
-108,6
+112,14
@@
typedef unsigned int uint;
#else /* !USE_HOSTCC */
#else /* !USE_HOSTCC */
+#ifdef CONFIG_USE_STDINT
+/* Provided by gcc. */
+#include <stdint.h>
+#else
+/* Type for `void *' pointers. */
+typedef unsigned long int uintptr_t;
+#endif
+
#include <linux/string.h>
#include <linux/types.h>
#include <asm/byteorder.h>
#include <linux/string.h>
#include <linux/types.h>
#include <asm/byteorder.h>
@@
-124,9
+136,6
@@
typedef unsigned int uint;
#define __WORDSIZE 32
#endif
#define __WORDSIZE 32
#endif
-/* Type for `void *' pointers. */
-typedef unsigned long int uintptr_t;
-
#endif /* USE_HOSTCC */
#define likely(x) __builtin_expect(!!(x), 1)
#endif /* USE_HOSTCC */
#define likely(x) __builtin_expect(!!(x), 1)