We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77e0da5 commit 91f6673Copy full SHA for 91f6673
src/unix/mod.rs
@@ -252,6 +252,10 @@ cfg_if! {
252
#[link(name = "c")]
253
#[link(name = "mxio")]
254
extern {}
255
+ } else if #[cfg(target_env = "newlib")] {
256
+ #[link(name = "c")]
257
+ #[link(name = "m")]
258
+ extern {}
259
} else {
260
261
#[link(name = "m")]
@@ -888,6 +892,9 @@ cfg_if! {
888
892
if #[cfg(target_env = "uclibc")] {
889
893
mod uclibc;
890
894
pub use self::uclibc::*;
895
896
+ mod newlib;
897
+ pub use self::newlib::*;
891
898
} else if #[cfg(any(target_os = "linux",
899
target_os = "android",
900
target_os = "emscripten",
src/unix/newlib/arm/mod.rs
@@ -0,0 +1,5 @@
1
+pub type c_char = u8;
2
+pub type wchar_t = u32;
3
+
4
+pub type c_long = i32;
5
+pub type c_ulong = u32;
0 commit comments