Skip to content

Commit c86b93b

Browse files
committed
FreeBSD: make wchar_t unsigned on arm/aarch64
Wide chars are unsigned when normal chars are
1 parent f70ff55 commit c86b93b

File tree

9 files changed

+8
-1
lines changed

9 files changed

+8
-1
lines changed

src/unix/bsd/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//!
33
//! This covers *-apple-* triples currently
44
pub type c_char = i8;
5+
pub type wchar_t = i32;
56
pub type clock_t = c_ulong;
67
pub type time_t = c_long;
78
pub type suseconds_t = i32;

src/unix/bsd/freebsdlike/dragonfly/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub type dev_t = u32;
22
pub type c_char = i8;
3+
pub type wchar_t = i32;
34
pub type clock_t = u64;
45
pub type ino_t = u64;
56
pub type lwpid_t = i32;

src/unix/bsd/freebsdlike/freebsd/aarch64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub type c_char = u8;
22
pub type c_long = i64;
33
pub type c_ulong = u64;
4+
pub type wchar_t = u32;
45
pub type time_t = i64;
56
pub type suseconds_t = i64;
67
pub type register_t = i64;

src/unix/bsd/freebsdlike/freebsd/arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub type c_char = u8;
22
pub type c_long = i32;
33
pub type c_ulong = u32;
4+
pub type wchar_t = u32;
45
pub type time_t = i64;
56
pub type suseconds_t = i32;
67
pub type register_t = i32;

src/unix/bsd/freebsdlike/freebsd/powerpc64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub type c_char = u8;
22
pub type c_long = i64;
33
pub type c_ulong = u64;
4+
pub type wchar_t = i32;
45
pub type time_t = i64;
56
pub type suseconds_t = i64;
67
pub type register_t = i64;

src/unix/bsd/freebsdlike/freebsd/x86.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub type c_char = i8;
22
pub type c_long = i32;
33
pub type c_ulong = u32;
4+
pub type wchar_t = i32;
45
pub type time_t = i32;
56
pub type suseconds_t = i32;
67
pub type register_t = i32;

src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub type c_char = i8;
22
pub type c_long = i64;
33
pub type c_ulong = u64;
4+
pub type wchar_t = i32;
45
pub type time_t = i64;
56
pub type suseconds_t = i64;
67
pub type register_t = i64;

src/unix/bsd/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub type wchar_t = i32;
21
pub type off_t = i64;
32
pub type useconds_t = u32;
43
pub type blkcnt_t = i64;

src/unix/bsd/netbsdlike/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pub type wchar_t = i32;
12
pub type time_t = i64;
23
pub type mode_t = u32;
34
pub type nlink_t = u32;

0 commit comments

Comments
 (0)