Fixed endian detection on Linux

This commit is contained in:
Pierre Pronchery 2011-04-28 21:06:56 +00:00
parent 1e482f87e1
commit 73b67b2fce

View File

@ -22,6 +22,9 @@
# include <sys/endian.h>
# elif defined(__linux__)
# include <endian.h>
# define _BYTE_ORDER __BYTE_ORDER
# define _BIG_ENDIAN __BIG_ENDIAN
# define _LITTLE_ENDIAN __LITTLE_ENDIAN
# endif
# include "Asm/arch.h"