14736
|
1 |
--- Python-2.6/Modules/_ctypes/libffi/src/x86/ffitarget.h.orig 2008-03-05 09:09:11.000000000 +1300
|
|
2 |
+++ Python-2.6/Modules/_ctypes/libffi/src/x86/ffitarget.h 2008-12-02 21:13:10.108375117 +1300
|
|
3 |
@@ -54,10 +54,10 @@
|
|
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 |
--- Python-2.5.2/Modules/_ctypes/callproc.c.alloca 2008-06-05 23:48:27.578970813 +1200
|
|
17 |
+++ Python-2.5.2/Modules/_ctypes/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 |
|