Commit cafdb8377a8be2eadac05c318fae9ef6786c36c2

Anthony Green 2022-09-18T12:05:12

Revert

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)