std: use the `c_int` from `core::ffi` instead of `libc` · rust-lang/rust@b2f29ed

File tree

1 file changed

lines changed

  • library/std/src/sys/thread_local/destructors

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -25,7 +25,7 @@ pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {

2525

#[cfi_encoding = "i"]

2626

#[repr(transparent)]

2727

#[allow(non_camel_case_types)]

28-

pub struct c_int(#[allow(dead_code)] pub libc::c_int);

28+

pub struct c_int(#[allow(dead_code)] pub core::ffi::c_int);

2929
3030

extern "C" {

3131

#[linkage = "extern_weak"]