Testing solaris patch. Will back out after one cycle.

This commit is contained in:
Dan Witte 2010-01-03 05:00:13 -08:00
Родитель f8b1e18a1b
Коммит a88b10e5e1
1 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -31,7 +31,15 @@
/* ---- System specific configurations ----------------------------------- */
#if defined (X86_64) && (defined (__i386__) || defined(__i386))
// Define __i386__ and __x86_64__ for Solaris.
#ifdef __i386
#define __i386__
#endif
#ifdef __x86_64
#define __x86_64__
#endif
#if defined (X86_64) && defined (__i386__)
#undef X86_64
#define X86
#endif
@ -54,10 +62,10 @@ typedef enum ffi_abi {
#endif
/* ---- Intel x86 and AMD x86-64 - */
#if !defined(X86_WIN32) && (defined(__i386__) || defined(__i386) || defined(__x86_64__) || defined(__x86_64))
#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
FFI_SYSV,
FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
#if defined(__i386__) || defined(__i386)
#ifdef __i386__
FFI_DEFAULT_ABI = FFI_SYSV,
#else
FFI_DEFAULT_ABI = FFI_UNIX64,
@ -74,7 +82,7 @@ typedef enum ffi_abi {
#define FFI_TYPE_SMALL_STRUCT_1B (FFI_TYPE_LAST + 1)
#define FFI_TYPE_SMALL_STRUCT_2B (FFI_TYPE_LAST + 2)
#if defined (X86_64) || ((defined (__x86_64__) || defined (__x86_64)) && defined (X86_DARWIN))
#if defined (X86_64) || (defined (__x86_64__) && defined (X86_DARWIN))
#define FFI_TRAMPOLINE_SIZE 24
#define FFI_NATIVE_RAW_API 0
#else