17946
|
1 |
--- libffi-3.0.9/src/x86/ffitarget.h.orig 2009-12-29 23:22:26.000000000 +0800
|
|
2 |
+++ libffi-3.0.9/src/x86/ffitarget.h 2010-04-28 16:30:53.542909753 +0800
|
13290
|
3 |
@@ -31,7 +31,7 @@
|
|
4 |
|
|
5 |
/* ---- System specific configurations ----------------------------------- */
|
|
6 |
|
|
7 |
-#if defined (X86_64) && defined (__i386__)
|
|
8 |
+#if defined (X86_64) && (defined (__i386__) || defined (__i386))
|
|
9 |
#undef X86_64
|
|
10 |
#define X86
|
|
11 |
#endif
|
17946
|
12 |
@@ -74,10 +74,10 @@
|
|
13 |
#else
|
13290
|
14 |
|
|
15 |
/* ---- Intel x86 and AMD x86-64 - */
|
|
16 |
-#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
|
17946
|
17 |
+#if !defined(X86_WIN32) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
|
13290
|
18 |
FFI_SYSV,
|
|
19 |
FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
|
|
20 |
-#ifdef __i386__
|
17946
|
21 |
+#if defined(__i386__) || defined(__i386)
|
13290
|
22 |
FFI_DEFAULT_ABI = FFI_SYSV,
|
|
23 |
#else
|
|
24 |
FFI_DEFAULT_ABI = FFI_UNIX64,
|