File tree 11 files changed +14
-20
lines changed
11 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 3
3
//! More functions and definitions can be found in the more specific modules
4
4
//! according to the platform in question.
5
5
6
+ use c_void;
7
+
6
8
// PUB_TYPE
7
9
8
10
pub type c_schar = i8 ;
@@ -4486,5 +4488,3 @@ cfg_if! {
4486
4488
// Unknown target_arch
4487
4489
}
4488
4490
}
4489
-
4490
- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 1
1
//! Hermit C type definitions
2
2
3
+ use c_void;
4
+
3
5
cfg_if ! {
4
6
if #[ cfg( any( target_arch = "aarch64" , target_arch = "riscv64" ) ) ] {
5
7
pub type c_char = u8 ;
@@ -576,5 +578,3 @@ extern "C" {
576
578
#[ link_name = "sys_poll" ]
577
579
pub fn poll ( fds : * mut pollfd , nfds : nfds_t , timeout : i32 ) -> i32 ;
578
580
}
579
-
580
- pub use ffi:: c_void;
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ use core::num;
61
61
#[ allow( unused_imports) ]
62
62
use core:: option:: Option ;
63
63
64
+ pub use core:: ffi:: c_void;
65
+
64
66
cfg_if ! {
65
67
if #[ cfg( windows) ] {
66
68
mod fixed_width_ints;
Original file line number Diff line number Diff line change @@ -25,5 +25,3 @@ pub type c_ulong = u64;
25
25
26
26
pub const INT_MIN : c_int = -2147483648 ;
27
27
pub const INT_MAX : c_int = 2147483647 ;
28
-
29
- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 2
2
//!
3
3
//! [SOLID]: https://solid.kmckk.com/
4
4
5
+ use c_void;
6
+
5
7
pub type c_schar = i8 ;
6
8
pub type c_uchar = u8 ;
7
9
pub type c_short = i16 ;
@@ -871,8 +873,6 @@ extern "C" {
871
873
pub fn lseek ( arg1 : c_int , arg2 : __off_t , arg3 : c_int ) -> __off_t ;
872
874
}
873
875
874
- pub use ffi:: c_void;
875
-
876
876
cfg_if ! {
877
877
if #[ cfg( target_arch = "aarch64" ) ] {
878
878
mod aarch64;
Original file line number Diff line number Diff line change @@ -27,5 +27,3 @@ pub type wchar_t = u32;
27
27
28
28
pub const INT_MIN : c_int = -2147483648 ;
29
29
pub const INT_MAX : c_int = 2147483647 ;
30
-
31
- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 3
3
//! More functions and definitions can be found in the more specific modules
4
4
//! according to the platform in question.
5
5
6
+ use c_void;
7
+
6
8
pub type c_schar = i8 ;
7
9
pub type c_uchar = u8 ;
8
10
pub type c_short = i16 ;
@@ -1688,5 +1690,3 @@ cfg_if! {
1688
1690
// Unknown target_os
1689
1691
}
1690
1692
}
1691
-
1692
- pub use ffi:: c_void;
Original file line number Diff line number Diff line change 1
1
//! Interface to VxWorks C library
2
2
3
+ use c_void;
3
4
use core:: mem:: size_of;
4
5
use core:: ptr:: null_mut;
5
6
@@ -2013,8 +2014,6 @@ pub unsafe fn posix_memalign(
2013
2014
}
2014
2015
}
2015
2016
2016
- pub use ffi:: c_void;
2017
-
2018
2017
cfg_if ! {
2019
2018
if #[ cfg( target_arch = "aarch64" ) ] {
2020
2019
mod aarch64;
Original file line number Diff line number Diff line change 2
2
// `wasi-libc` project provides multiple libraries including emulated features, but we list only basic features with `libc.a` here.
3
3
4
4
use super :: { Send , Sync } ;
5
+ use c_void;
5
6
use core:: iter:: Iterator ;
6
7
7
- pub use ffi:: c_void;
8
-
9
8
pub type c_char = i8 ;
10
9
pub type c_uchar = u8 ;
11
10
pub type c_schar = i8 ;
Original file line number Diff line number Diff line change 1
1
//! Windows CRT definitions
2
2
3
+ use c_void;
4
+
3
5
pub type c_schar = i8 ;
4
6
pub type c_uchar = u8 ;
5
7
pub type c_short = i16 ;
@@ -565,8 +567,6 @@ extern "system" {
565
567
pub fn socket ( af : :: c_int , socket_type : :: c_int , protocol : :: c_int ) -> SOCKET ;
566
568
}
567
569
568
- pub use ffi:: c_void;
569
-
570
570
cfg_if ! {
571
571
if #[ cfg( all( target_env = "gnu" ) ) ] {
572
572
mod gnu;
Original file line number Diff line number Diff line change @@ -27,5 +27,3 @@ pub type wchar_t = u32;
27
27
28
28
pub const INT_MIN : c_int = -2147483648 ;
29
29
pub const INT_MAX : c_int = 2147483647 ;
30
-
31
- pub use ffi:: c_void;
You can’t perform that action at this time.
0 commit comments