File tree 10 files changed +32
-10
lines changed
10 files changed +32
-10
lines changed Original file line number Diff line number Diff line change 1
- pub type c_char = i8 ;
1
+ pub type c_char = u8 ;
2
2
pub type wchar_t = u32 ;
3
3
pub type c_long = i64 ;
4
4
pub type c_ulong = u64 ;
Original file line number Diff line number Diff line change 1
- pub type c_char = i8 ;
1
+ pub type c_char = u8 ;
2
2
pub type wchar_t = u32 ;
3
3
pub type c_long = i32 ;
4
4
pub type c_ulong = u32 ;
Original file line number Diff line number Diff line change 1
1
use crate :: off64_t;
2
2
use crate :: prelude:: * ;
3
3
4
- pub type c_char = i8 ;
4
+ pub type c_char = u8 ;
5
5
pub type wchar_t = u32 ;
6
6
pub type greg_t = i64 ;
7
7
pub type __u64 = c_ulonglong ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use crate::prelude::*;
6
6
pub type blkcnt_t = i64 ;
7
7
pub type blksize_t = i64 ;
8
8
pub type clock_t = i64 ;
9
- pub type c_char = u8 ;
9
+ pub type c_char = i8 ;
10
10
pub type c_long = i64 ;
11
11
pub type c_ulong = u64 ;
12
12
pub type fsblkcnt_t = c_ulong ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use crate::prelude::*;
3
3
4
4
pub type clock_t = c_long ;
5
5
6
- pub type c_char = i8 ;
6
+ pub type c_char = u8 ;
7
7
pub type wchar_t = u32 ;
8
8
9
9
pub type c_long = i32 ;
Original file line number Diff line number Diff line change @@ -5,7 +5,17 @@ pub type nlink_t = u16;
5
5
pub type ino_t = u16 ;
6
6
pub type blkcnt_t = u64 ;
7
7
pub type blksize_t = i16 ;
8
- pub type c_char = i8 ;
8
+ cfg_if ! {
9
+ if #[ cfg( any(
10
+ target_arch = "arm" ,
11
+ target_arch = "riscv32" ,
12
+ target_arch = "riscv64" ,
13
+ ) ) ] {
14
+ pub type c_char = u8 ;
15
+ } else {
16
+ pub type c_char = i8 ;
17
+ }
18
+ }
9
19
pub type c_long = isize ;
10
20
pub type c_ulong = usize ;
11
21
pub type cc_t = u8 ;
Original file line number Diff line number Diff line change 1
1
use crate :: prelude:: * ;
2
2
3
- pub type c_char = i8 ;
3
+ cfg_if ! {
4
+ if #[ cfg( target_arch = "aarch64" ) ] {
5
+ pub type c_char = u8 ;
6
+ } else {
7
+ pub type c_char = i8 ;
8
+ }
9
+ }
4
10
pub type wchar_t = i32 ;
5
11
6
12
cfg_if ! {
Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ use core::mem::size_of;
2
2
3
3
use crate :: prelude:: * ;
4
4
5
- pub type c_char = i8 ;
5
+ cfg_if ! {
6
+ if #[ cfg( target_arch = "aarch64" ) ] {
7
+ pub type c_char = u8 ;
8
+ } else {
9
+ pub type c_char = i8 ;
10
+ }
11
+ }
6
12
pub type c_long = i64 ;
7
13
pub type c_ulong = u64 ;
8
14
pub type caddr_t = * mut c_char ;
Original file line number Diff line number Diff line change 1
- pub type c_char = i8 ;
1
+ pub type c_char = u8 ;
2
2
pub type wchar_t = i32 ;
3
3
pub type c_long = i32 ;
4
4
pub type c_ulong = u32 ;
Original file line number Diff line number Diff line change 1
- pub type c_char = i8 ;
1
+ pub type c_char = u8 ;
2
2
pub type wchar_t = i32 ;
3
3
pub type c_long = i64 ;
4
4
pub type c_ulong = u64 ;
You can’t perform that action at this time.
0 commit comments