File tree 4 files changed +16
-18
lines changed
4 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ pub type c_long = i64;
51
51
52
52
pub type c_ulong = u64 ;
53
53
54
- #[ repr( align( 16 ) ) ]
55
- pub struct _CLongDouble ( pub u128 ) ;
56
-
57
54
// long double in C means A float point value, which has 128bit length.
58
55
// but some bit maybe not used, so the real length of long double could be 80(x86) or 128(power pc/IEEE)
59
56
// this is different from f128(not stable and not included default) in Rust, so we use u128 for FFI(Rust to C).
@@ -88,6 +85,9 @@ pub type wctype_t = c_ulong;
88
85
89
86
pub type cmpfunc = extern "C" fn ( x : * const c_void , y : * const c_void ) -> c_int ;
90
87
88
+ #[ repr( align( 16 ) ) ]
89
+ pub struct _CLongDouble ( pub u128 ) ;
90
+
91
91
#[ repr( align( 8 ) ) ]
92
92
#[ repr( C ) ]
93
93
pub struct pthread_cond_t {
Original file line number Diff line number Diff line change @@ -2214,18 +2214,6 @@ cfg_if! {
2214
2214
}
2215
2215
}
2216
2216
2217
- cfg_if ! {
2218
- if #[ cfg( all(
2219
- any( target_env = "gnu" , target_env = "musl" , target_env = "ohos" ) ,
2220
- any( target_arch = "x86_64" , target_arch = "x86" )
2221
- ) ) ] {
2222
- extern "C" {
2223
- pub fn iopl( level: c_int) -> c_int;
2224
- pub fn ioperm( from: c_ulong, num: c_ulong, turn_on: c_int) -> c_int;
2225
- }
2226
- }
2227
- }
2228
-
2229
2217
cfg_if ! {
2230
2218
if #[ cfg( any(
2231
2219
target_env = "gnu" ,
@@ -6088,6 +6076,18 @@ safe_f! {
6088
6076
}
6089
6077
}
6090
6078
6079
+ cfg_if ! {
6080
+ if #[ cfg( all(
6081
+ any( target_env = "gnu" , target_env = "musl" , target_env = "ohos" ) ,
6082
+ any( target_arch = "x86_64" , target_arch = "x86" )
6083
+ ) ) ] {
6084
+ extern "C" {
6085
+ pub fn iopl( level: c_int) -> c_int;
6086
+ pub fn ioperm( from: c_ulong, num: c_ulong, turn_on: c_int) -> c_int;
6087
+ }
6088
+ }
6089
+ }
6090
+
6091
6091
cfg_if ! {
6092
6092
if #[ cfg( all( not( target_env = "uclibc" ) , not( target_env = "ohos" ) ) ) ] {
6093
6093
extern "C" {
Original file line number Diff line number Diff line change 28
28
}
29
29
}
30
30
31
- #[ cfg( target_os = "l4re" ) ]
32
31
#[ allow( missing_debug_implementations) ]
33
32
pub struct pthread_attr_t {
34
33
pub __detachstate : c_int ,
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ pub type nfds_t = c_ulong;
44
44
pub type wchar_t = i32 ;
45
45
pub type nl_item = c_int ;
46
46
pub type __wasi_rights_t = u64 ;
47
+ pub type locale_t = * mut __locale_struct ;
47
48
48
49
s_no_extra_traits ! {
49
50
#[ repr( align( 16 ) ) ]
@@ -63,8 +64,6 @@ pub enum DIR {}
63
64
#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
64
65
pub enum __locale_struct { }
65
66
66
- pub type locale_t = * mut __locale_struct ;
67
-
68
67
s_paren ! {
69
68
// in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct),
70
69
// but that's an implementation detail that we don't want to have to deal with
You can’t perform that action at this time.
0 commit comments