1641
|
1 |
--- ctypes-1.0.2/source/libffi/src/x86/ffitarget.h-orig 2009-01-21 04:16:39.423661000 -0600
|
|
2 |
+++ ctypes-1.0.2/source/libffi/src/x86/ffitarget.h 2009-01-21 04:17:10.942637000 -0600
|
|
3 |
@@ -51,10 +51,10 @@ typedef enum ffi_abi {
|
|
4 |
#endif
|
|
5 |
|
|
6 |
/* ---- Intel x86 and AMD x86-64 - */
|
|
7 |
-#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
|
|
8 |
+#if !defined(X86_WIN32) && (defined(__i386__) || defined (__i386) || defined(__x86_64__))
|
|
9 |
FFI_SYSV,
|
|
10 |
FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
|
|
11 |
-#ifdef __i386__
|
|
12 |
+#if defined (__i386__) || defined (__i386)
|
|
13 |
FFI_DEFAULT_ABI = FFI_SYSV,
|
|
14 |
#else
|
|
15 |
FFI_DEFAULT_ABI = FFI_UNIX64,
|
|
16 |
--- ctypes-1.0.2/source/callproc.c.alloca 2008-06-05 23:48:27.578970813 +1200
|
|
17 |
+++ ctypes-1.0.2/source/callproc.c 2008-06-05 23:48:41.677662640 +1200
|
|
18 |
@@ -73,6 +73,8 @@
|
|
19 |
#include <malloc.h>
|
|
20 |
#endif
|
|
21 |
|
|
22 |
+#include <alloca.h>
|
|
23 |
+
|
|
24 |
#include <ffi.h>
|
|
25 |
#include "ctypes.h"
|
|
26 |
|