summaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@users.noreply.github.com>2020-10-27 07:06:21 -0700
committerGitHub <noreply@github.com>2020-10-27 10:06:21 -0400
commit032b3cd6f7850f3ebc1269eeab7d1db3ea518d29 (patch)
tree617af1d0b461d33857dec398c577b323427cf5dd /src/arm
parent93cf288ddd59c7cb203c1aba25de5e5b8f308da6 (diff)
downloadlibffi-032b3cd6f7850f3ebc1269eeab7d1db3ea518d29.tar.gz
Support building x86 and arm64 without FFI_GO_CLOSURES (#586)
* x86: Support building without FFI_GO_CLOSURES Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> * arm: Support building without FFI_GO_CLOSURES Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/ffi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arm/ffi.c b/src/arm/ffi.c
index efea031..0058390 100644
--- a/src/arm/ffi.c
+++ b/src/arm/ffi.c
@@ -426,12 +426,14 @@ ffi_call (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue)
ffi_call_int (cif, fn, rvalue, avalue, NULL);
}
+#ifdef FFI_GO_CLOSURES
void
ffi_call_go (ffi_cif *cif, void (*fn) (void), void *rvalue,
void **avalue, void *closure)
{
ffi_call_int (cif, fn, rvalue, avalue, closure);
}
+#endif
static void *
ffi_prep_incoming_args_SYSV (ffi_cif *cif, void *rvalue,
@@ -569,8 +571,11 @@ ffi_closure_inner_VFP (ffi_cif *cif,
void ffi_closure_SYSV (void) FFI_HIDDEN;
void ffi_closure_VFP (void) FFI_HIDDEN;
+
+#ifdef FFI_GO_CLOSURES
void ffi_go_closure_SYSV (void) FFI_HIDDEN;
void ffi_go_closure_VFP (void) FFI_HIDDEN;
+#endif
/* the cif must already be prep'ed */
@@ -637,6 +642,7 @@ ffi_prep_closure_loc (ffi_closure * closure,
return FFI_OK;
}
+#ifdef FFI_GO_CLOSURES
ffi_status
ffi_prep_go_closure (ffi_go_closure *closure, ffi_cif *cif,
void (*fun) (ffi_cif *, void *, void **, void *))
@@ -658,6 +664,7 @@ ffi_prep_go_closure (ffi_go_closure *closure, ffi_cif *cif,
return FFI_OK;
}
+#endif
/* Below are routines for VFP hard-float support. */