From 91a54c11cbfbe3adc1df2f523c75ad76affb0ae9 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Sat, 19 Sep 2009 18:30:56 -0500 Subject: [PATCH] Add x86-64 checking for Darwin Detect byte endianness when compiled in x86-64 mode in Mac OS X 10.6 Snow Leopard environments or above. Allows compilation of host binaries in these environments without any changes from its default stock configuration. This change doesn't require that the binaries be built in 64-bit, but it does allow this. One could still use "gcc_select 4.0" with the 10.4 SDK installed on Snow Leopard to compile in 32-bit mode. Change-Id: I155a531a9bff450dd6c077b5275652731c59a908 --- include/arch/darwin-x86/AndroidConfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/darwin-x86/AndroidConfig.h b/include/arch/darwin-x86/AndroidConfig.h index 20e000015..363a8f731 100644 --- a/include/arch/darwin-x86/AndroidConfig.h +++ b/include/arch/darwin-x86/AndroidConfig.h @@ -146,7 +146,7 @@ */ #if (defined(__ppc__) || defined(__ppc64__)) # define HAVE_BIG_ENDIAN -#elif defined(__i386__) +#elif (defined(__i386__) || defined(__x86_64__)) # define HAVE_LITTLE_ENDIAN #endif @@ -219,7 +219,7 @@ */ #if (defined(__ppc__) || defined(__ppc64__)) # define ARCH_PPC -#elif defined(__i386__) +#elif (defined(__i386__) || defined(__x86_64__)) # define ARCH_X86 #endif