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
This commit is contained in:
Kenny Root 2009-09-19 18:30:56 -05:00
parent cc7a5dc770
commit 91a54c11cb
1 changed files with 2 additions and 2 deletions

View File

@ -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