From ae81dc8df49aeeb33d68d324f549593d9747deae Mon Sep 17 00:00:00 2001 From: roblabla <unfiltered@roblab.la> Date: Tue, 14 Nov 2017 10:15:16 +0100 Subject: [PATCH] Add aarch64 support to newlib bindings --- src/unix/newlib/aarch64/mod.rs | 5 +++++ src/unix/newlib/mod.rs | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 src/unix/newlib/aarch64/mod.rs diff --git a/src/unix/newlib/aarch64/mod.rs b/src/unix/newlib/aarch64/mod.rs new file mode 100644 index 00000000..96f381a3 --- /dev/null +++ b/src/unix/newlib/aarch64/mod.rs @@ -0,0 +1,5 @@ +pub type c_char = u8; +pub type wchar_t = u32; + +pub type c_long = i64; +pub type c_ulong = u64; diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 7cc7fec2..6cf8633e 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -679,6 +679,9 @@ cfg_if! { if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; + } else if #[cfg(target_arch = "aarch64")] { + mod aarch64; + pub use self::aarch64::*; } else { // Only tested on ARM so far. Other platforms might have different // definitions for types and constants. -- GitLab