[PATCH 5/6] scripts/compiler.h: fixup endianess defines on OS X
Dirk Hörner
dirker at gmail.com
Mon Jun 4 16:40:18 EDT 2012
Signed-off-by: Dirk Hörner <dirker at gmail.com>
---
scripts/compiler.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/compiler.h b/scripts/compiler.h
index f4b1432..53f84b6 100644
--- a/scripts/compiler.h
+++ b/scripts/compiler.h
@@ -45,6 +45,9 @@
# include <byteswap.h>
#elif defined(__MACH__)
# include <machine/endian.h>
+# define __BYTE_ORDER BYTE_ORDER
+# define __LITTLE_ENDIAN LITTLE_ENDIAN
+# define __BIG_ENDIAN BIG_ENDIAN
typedef unsigned long ulong;
typedef unsigned int uint;
#endif
--
1.7.10.3
More information about the barebox
mailing list