projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert CONFIG_ARCH_MISC_INIT to Kconfig
[platform/kernel/u-boot.git]
/
include
/
compiler.h
diff --git
a/include/compiler.h
b/include/compiler.h
index
1451916
..
a43fb6a
100644
(file)
--- a/
include/compiler.h
+++ b/
include/compiler.h
@@
-15,7
+15,7
@@
defined(__sun__) || \
defined(__APPLE__)
# include <inttypes.h>
defined(__sun__) || \
defined(__APPLE__)
# include <inttypes.h>
-#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__)
+#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__)
|| defined(__OpenBSD__)
# include <stdint.h>
#endif
# include <stdint.h>
#endif
@@
-48,6
+48,15
@@
# 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 */
+#elif defined(__OpenBSD__)
+# include <endian.h>
+# define __BYTE_ORDER BYTE_ORDER
+# define __LITTLE_ENDIAN LITTLE_ENDIAN
+# define __BIG_ENDIAN BIG_ENDIAN
+#endif
+
#include <time.h>
typedef uint8_t __u8;
#include <time.h>
typedef uint8_t __u8;
@@
-108,6
+117,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
+141,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)