summaryrefslogtreecommitdiff
path: root/src/prep_cif.c
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2010-08-05 08:48:16 -0400
committerAnthony Green <green@moxielogic.com>2010-08-05 08:48:16 -0400
commitc1d28ba8d5029795af313ffeb81c97efc6d4c847 (patch)
tree321063a723b87c9c86bbda5f48e85570a9c413e3 /src/prep_cif.c
parent5feacad4a56c85b3f23a267a30b2cf424cd59548 (diff)
downloadlibffi-c1d28ba8d5029795af313ffeb81c97efc6d4c847.tar.gz
stdcall-x86-closure-fix
Diffstat (limited to 'src/prep_cif.c')
-rw-r--r--src/prep_cif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prep_cif.c b/src/prep_cif.c
index 5d749ef..761abdc 100644
--- a/src/prep_cif.c
+++ b/src/prep_cif.c
@@ -110,7 +110,7 @@ ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs,
FFI_ASSERT_VALID_TYPE(cif->rtype);
/* x86, x86-64 and s390 stack space allocation is handled in prep_machdep. */
-#if !defined M68K && !defined __i386__ && !defined __x86_64__ && !defined S390 && !defined PA
+#if !defined M68K && !defined X86_ANY && !defined S390 && !defined PA
/* Make space for the return structure pointer */
if (cif->rtype->type == FFI_TYPE_STRUCT
#ifdef SPARC
@@ -131,7 +131,7 @@ ffi_status ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs,
check after the initialization. */
FFI_ASSERT_VALID_TYPE(*ptr);
-#if !defined __i386__ && !defined __x86_64__ && !defined S390 && !defined PA
+#if !defined X86_ANY && !defined S390 && !defined PA
#ifdef SPARC
if (((*ptr)->type == FFI_TYPE_STRUCT
&& ((*ptr)->size > 16 || cif->abi != FFI_V9))