Replace libc::c_int with core::ffi::c_int

And remove the libc crate when it isn't needed
This commit is contained in:
Chris Denton
2024-03-09 02:03:22 +00:00
parent f3c6608861
commit b1f1039d8b
14 changed files with 35 additions and 15 deletions

View File

@@ -431,6 +431,9 @@ extern crate test;
#[allow(unused_imports)] // macros from `alloc` are not used on all platforms
#[macro_use]
extern crate alloc as alloc_crate;
// Many compiler tests depend on libc being pulled in by std
// so include it here even if it's unused.
#[doc(masked)]
#[allow(unused_extern_crates)]
extern crate libc;