File tree Expand file tree Collapse file tree 11 files changed +14
-20
lines changed Expand file tree Collapse file tree 11 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 33//! More functions and definitions can be found in the more specific modules
44//! according to the platform in question.
55
6+ use c_void;
7+
68// PUB_TYPE
79
810pub type c_schar = i8 ;
@@ -4486,5 +4488,3 @@ cfg_if! {
44864488 // Unknown target_arch
44874489 }
44884490}
4489-
4490- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 11//! Hermit C type definitions
22
3+ use c_void;
4+
35cfg_if ! {
46 if #[ cfg( any( target_arch = "aarch64" , target_arch = "riscv64" ) ) ] {
57 pub type c_char = u8 ;
@@ -576,5 +578,3 @@ extern "C" {
576578 #[ link_name = "sys_poll" ]
577579 pub fn poll ( fds : * mut pollfd , nfds : nfds_t , timeout : i32 ) -> i32 ;
578580}
579-
580- pub use ffi:: c_void;
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ use core::num;
6161#[ allow( unused_imports) ]
6262use core:: option:: Option ;
6363
64+ pub use core:: ffi:: c_void;
65+
6466cfg_if ! {
6567 if #[ cfg( windows) ] {
6668 mod fixed_width_ints;
Original file line number Diff line number Diff line change @@ -25,5 +25,3 @@ pub type c_ulong = u64;
2525
2626pub const INT_MIN : c_int = -2147483648 ;
2727pub const INT_MAX : c_int = 2147483647 ;
28-
29- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 22//!
33//! [SOLID]: https://solid.kmckk.com/
44
5+ use c_void;
6+
57pub type c_schar = i8 ;
68pub type c_uchar = u8 ;
79pub type c_short = i16 ;
@@ -871,8 +873,6 @@ extern "C" {
871873 pub fn lseek ( arg1 : c_int , arg2 : __off_t , arg3 : c_int ) -> __off_t ;
872874}
873875
874- pub use ffi:: c_void;
875-
876876cfg_if ! {
877877 if #[ cfg( target_arch = "aarch64" ) ] {
878878 mod aarch64;
Original file line number Diff line number Diff line change @@ -27,5 +27,3 @@ pub type wchar_t = u32;
2727
2828pub const INT_MIN : c_int = -2147483648 ;
2929pub const INT_MAX : c_int = 2147483647 ;
30-
31- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 33//! More functions and definitions can be found in the more specific modules
44//! according to the platform in question.
55
6+ use c_void;
7+
68pub type c_schar = i8 ;
79pub type c_uchar = u8 ;
810pub type c_short = i16 ;
@@ -1688,5 +1690,3 @@ cfg_if! {
16881690 // Unknown target_os
16891691 }
16901692}
1691-
1692- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 11//! Interface to VxWorks C library
22
3+ use c_void;
34use core:: mem:: size_of;
45use core:: ptr:: null_mut;
56
@@ -2013,8 +2014,6 @@ pub unsafe fn posix_memalign(
20132014 }
20142015}
20152016
2016- pub use ffi:: c_void;
2017-
20182017cfg_if ! {
20192018 if #[ cfg( target_arch = "aarch64" ) ] {
20202019 mod aarch64;
Original file line number Diff line number Diff line change 22// `wasi-libc` project provides multiple libraries including emulated features, but we list only basic features with `libc.a` here.
33
44use super :: { Send , Sync } ;
5+ use c_void;
56use core:: iter:: Iterator ;
67
7- pub use ffi:: c_void;
8-
98pub type c_char = i8 ;
109pub type c_uchar = u8 ;
1110pub type c_schar = i8 ;
Original file line number Diff line number Diff line change 11//! Windows CRT definitions
22
3+ use c_void;
4+
35pub type c_schar = i8 ;
46pub type c_uchar = u8 ;
57pub type c_short = i16 ;
@@ -565,8 +567,6 @@ extern "system" {
565567 pub fn socket ( af : :: c_int , socket_type : :: c_int , protocol : :: c_int ) -> SOCKET ;
566568}
567569
568- pub use ffi:: c_void;
569-
570570cfg_if ! {
571571 if #[ cfg( all( target_env = "gnu" ) ) ] {
572572 mod gnu;
You can’t perform that action at this time.
0 commit comments