Improved BYTE_ORDER detection for Android cross-compilation.

This commit is contained in:
gardners 2011-12-19 09:06:34 +10:30
parent 34075ce84d
commit 9c3cc04b3a
2 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,7 @@ LOCAL_CFLAGS += \
-DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 \
-DHAVE_STRING_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_SOCKET_H=1 \
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_POLL_H=1 -DHAVE_NETDB_H=1 \
-DBYTE_ORDER=LITTLE_ENDIAN
-DHAVE_SYS_ENDIAN_H=1
include $(BUILD_SHARED_LIBRARY)

3
sha2.c
View File

@ -33,6 +33,9 @@
#include <string.h> /* memcpy()/memset() or bcopy()/bzero() */
#include <assert.h> /* assert() */
#ifdef HAVE_SYS_ENDIAN_H
#include <sys/endian.h>
#endif
#include "sha2.h"
/*