[Python-checkins] r60967 - python/branches/libffi3-branch/Modules/_ctypes/libffi/src/x86/ffi.c
thomas.heller
python-checkins at python.org
Fri Feb 22 20:30:41 CET 2008
Author: thomas.heller
Date: Fri Feb 22 20:30:41 2008
New Revision: 60967
Modified:
python/branches/libffi3-branch/Modules/_ctypes/libffi/src/x86/ffi.c
Log:
Revert rev 60966, it does not work on OpenBSD and FreeBSD.
Modified: python/branches/libffi3-branch/Modules/_ctypes/libffi/src/x86/ffi.c
==============================================================================
--- python/branches/libffi3-branch/Modules/_ctypes/libffi/src/x86/ffi.c (original)
+++ python/branches/libffi3-branch/Modules/_ctypes/libffi/src/x86/ffi.c Fri Feb 22 20:30:41 2008
@@ -121,7 +121,7 @@
switch (cif->rtype->type)
{
case FFI_TYPE_VOID:
-#ifdef X86
+#if !defined(X86_WIN32) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
case FFI_TYPE_STRUCT:
#endif
#if defined(X86) || defined(X86_DARWIN)
@@ -142,7 +142,7 @@
cif->flags = FFI_TYPE_SINT64;
break;
-#ifndef X86
+#if defined(X86_WIN32) || defined(__OpenBSD__) || defined(__FreeBSD__)
case FFI_TYPE_STRUCT:
if (cif->rtype->size == 1)
{
More information about the Python-checkins
mailing list