Auto merge of #892 - EdSchouten:cloudabi-arm, r=alexcrichton
Minor fixes for CloudABI ARM support In the initial set of fixes for CloudABI, it looks like support for 32-bit ARM was left out, even though it is supported for C/C++. While there, fix up `c_char` for ARM64, which currently has the wrong sign.
This commit is contained in:
commit
4939bb2224
@ -1,4 +1,4 @@
|
||||
pub type c_char = i8;
|
||||
pub type c_char = u8;
|
||||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
pub type wchar_t = u32;
|
||||
|
4
src/cloudabi/arm.rs
Normal file
4
src/cloudabi/arm.rs
Normal file
@ -0,0 +1,4 @@
|
||||
pub type c_char = u8;
|
||||
pub type c_long = i32;
|
||||
pub type c_ulong = u32;
|
||||
pub type wchar_t = u32;
|
@ -151,6 +151,9 @@ cfg_if! {
|
||||
if #[cfg(target_arch = "aarch64")] {
|
||||
mod aarch64;
|
||||
pub use self::aarch64::*;
|
||||
} else if #[cfg(any(target_arch = "arm"))] {
|
||||
mod arm;
|
||||
pub use self::arm::*;
|
||||
} else if #[cfg(any(target_arch = "x86"))] {
|
||||
mod x86;
|
||||
pub use self::x86::*;
|
||||
|
Loading…
Reference in New Issue
Block a user