summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-18 12:05:12 -0400
committerAnthony Green <green@moxielogic.com>2022-09-18 12:05:12 -0400
commitcafdb8377a8be2eadac05c318fae9ef6786c36c2 (patch)
treeb07186c773ce21726dd25f81968f1e32f7aa816c /src
parentacf0ce9e9b0bcd73d39f599a53e9924ba74c13c1 (diff)
downloadlibffi-cafdb8377a8be2eadac05c318fae9ef6786c36c2.tar.gz
Revert
Diffstat (limited to 'src')
-rw-r--r--src/x86/ffi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index 7ca1340..f867c20 100644
--- a/src/x86/ffi.c
+++ b/src/x86/ffi.c
@@ -117,6 +117,7 @@ ffi_prep_cif_machdep(ffi_cif *cif)
flags = X86_RET_INT64;
break;
case FFI_TYPE_STRUCT:
+#ifndef X86
if (cif->rtype->size == 1)
flags = X86_RET_STRUCT_1B;
else if (cif->rtype->size == 2)
@@ -126,6 +127,7 @@ ffi_prep_cif_machdep(ffi_cif *cif)
else if (cif->rtype->size == 8)
flags = X86_RET_INT64;
else
+#endif
{
do_struct:
switch (cabi)