std: use the c_int from core::ffi instead of libc

This commit is contained in:
joboet 2024-06-17 12:45:10 +02:00
parent d70f071392
commit b2f29edc81
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C

View File

@ -25,7 +25,7 @@ pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
#[cfi_encoding = "i"]
#[repr(transparent)]
#[allow(non_camel_case_types)]
pub struct c_int(#[allow(dead_code)] pub libc::c_int);
pub struct c_int(#[allow(dead_code)] pub core::ffi::c_int);
extern "C" {
#[linkage = "extern_weak"]