From a2bb8962cb4b64aed42861ec8dabb13e068ea40d Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 7 Apr 2026 07:26:02 +0200 Subject: [PATCH] fix: add missing `extern "C"` to dc_array_is_independent It was the only `unsafe fn` (not `unsafe extern "C" fn`) in lib.rs --- deltachat-ffi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 4aa889d27..4b375ad4c 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -2826,7 +2826,7 @@ pub unsafe extern "C" fn dc_array_search_id( // Returns 1 if location belongs to the track of the user, // 0 if location was reported independently. #[no_mangle] -pub unsafe fn dc_array_is_independent( +pub unsafe extern "C" fn dc_array_is_independent( array: *const dc_array_t, index: libc::size_t, ) -> libc::c_int {