aboutsummaryrefslogtreecommitdiffstats
path: root/include/arch
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-09-19 18:30:56 -0500
committerKenny Root <kenny@the-b.org>2010-01-21 11:27:10 -0600
commit91a54c11cbfbe3adc1df2f523c75ad76affb0ae9 (patch)
tree598a85a9308c6bc15dba14e8e283a56309108dd0 /include/arch
parentcc7a5dc770e50272f3c14dacf8b0d7ad5f68032d (diff)
downloadsystem_core-91a54c11cbfbe3adc1df2f523c75ad76affb0ae9.tar.gz
system_core-91a54c11cbfbe3adc1df2f523c75ad76affb0ae9.tar.bz2
system_core-91a54c11cbfbe3adc1df2f523c75ad76affb0ae9.zip
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
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/darwin-x86/AndroidConfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/darwin-x86/AndroidConfig.h b/include/arch/darwin-x86/AndroidConfig.h
index 20e00001..363a8f73 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