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:
bors 2018-01-09 15:15:59 +00:00
commit 4939bb2224
3 changed files with 8 additions and 1 deletions

View File

@ -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
View 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;

View File

@ -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::*;