9
0
Fork 0

scripts/compiler.h: fixup endianess defines on OS X

Signed-off-by: Dirk Hörner <dirker@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Dirk Hörner 2012-06-04 22:40:18 +02:00 committed by Sascha Hauer
parent a906e5e196
commit 49356933f5
1 changed files with 3 additions and 0 deletions

View File

@ -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