From 602e1ba855eba0544ab584851cb10f488330282f Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Mon, 5 Jan 2026 07:23:55 -0700 Subject: [PATCH] Replace off_t with Windows-allowed value in AFC FFI --- ffi/src/afc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffi/src/afc.rs b/ffi/src/afc.rs index 71ae9af..6c70436 100644 --- a/ffi/src/afc.rs +++ b/ffi/src/afc.rs @@ -707,7 +707,7 @@ pub unsafe extern "C" fn afc_file_seek( handle: *mut AfcFileHandle, offset: i64, whence: libc::c_int, - new_pos: *mut libc::off_t, + new_pos: *mut i64, ) -> *mut IdeviceFfiError { if handle.is_null() || new_pos.is_null() { return ffi_err!(IdeviceError::FfiInvalidArg); @@ -727,7 +727,7 @@ pub unsafe extern "C" fn afc_file_seek( match res { Ok(pos) => { unsafe { - *new_pos = pos as libc::off_t; + *new_pos = pos as i64; } null_mut() } @@ -753,7 +753,7 @@ pub unsafe extern "C" fn afc_file_seek( #[unsafe(no_mangle)] pub unsafe extern "C" fn afc_file_tell( handle: *mut AfcFileHandle, - pos: *mut libc::off_t, + pos: *mut i64, ) -> *mut IdeviceFfiError { if handle.is_null() || pos.is_null() { return ffi_err!(IdeviceError::FfiInvalidArg); @@ -767,7 +767,7 @@ pub unsafe extern "C" fn afc_file_tell( match res { Ok(cur) => { unsafe { - *pos = cur as libc::off_t; + *pos = cur as i64; } null_mut() }