mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 10:24:16 +00:00
std: use the c_int
from core::ffi
instead of libc
This commit is contained in:
parent
d70f071392
commit
b2f29edc81
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user