File tree Expand file tree Collapse file tree 3 files changed +616
-0
lines changed Expand file tree Collapse file tree 3 files changed +616
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,10 @@ cfg_if! {
252252 #[ link( name = "c" ) ]
253253 #[ link( name = "mxio" ) ]
254254 extern { }
255+ } else if #[ cfg( target_env = "newlib" ) ] {
256+ #[ link( name = "c" ) ]
257+ #[ link( name = "m" ) ]
258+ extern { }
255259 } else {
256260 #[ link( name = "c" ) ]
257261 #[ link( name = "m" ) ]
@@ -888,6 +892,9 @@ cfg_if! {
888892 if #[ cfg( target_env = "uclibc" ) ] {
889893 mod uclibc;
890894 pub use self :: uclibc:: * ;
895+ } else if #[ cfg( target_env = "newlib" ) ] {
896+ mod newlib;
897+ pub use self :: newlib:: * ;
891898 } else if #[ cfg( any( target_os = "linux" ,
892899 target_os = "android" ,
893900 target_os = "emscripten" ,
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments