Fix for libtremor endianness
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user