Drop use of deprecated ffi_prep_closure (#2988)

Use ffi_prep_closure_loc instead.

Fixes #2985
This commit is contained in:
Paulo Matos 2019-12-19 16:09:37 +01:00 committed by GitHub
parent 31636870a9
commit 91fa5b6490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4383,7 +4383,7 @@ static Scheme_Object *ffi_callback_or_curry(const char *who, int curry, int argc
}
# endif /* MZ_USE_MZRT */
cl_cif_args->data = callback_data;
if (ffi_prep_closure(cl, cif, do_callback, (void*)(cl_cif_args->data))
if (ffi_prep_closure_loc(cl, cif, do_callback, (void*)(cl_cif_args->data), cl)
!= FFI_OK)
scheme_signal_error
("internal error: ffi_prep_closure did not return FFI_OK");