Fix for libtremor endianness

This commit is contained in:
pelya
2010-03-01 15:49:41 +02:00
parent 3d2be5cd30
commit cb8dc5244a
2 changed files with 9 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := tremor
LOCAL_CFLAGS := -I$(LOCAL_PATH) -DBIG_ENDIAN=1 -DBYTE_ORDER=BIG_ENDIAN -DHAVE_ALLOCA_H
LOCAL_CFLAGS := -I$(LOCAL_PATH) -DHAVE_ALLOCA_H
LOCAL_CPP_EXTENSION := .cpp

View File

@@ -45,6 +45,14 @@
# define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifdef __ARMEB__
#define BIG_ENDIAN 1
#define BYTE_ORDER BIG_ENDIAN
#else
#define LITTLE_ENDIAN 1
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#endif