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! {
252
252
#[ link( name = "c" ) ]
253
253
#[ link( name = "mxio" ) ]
254
254
extern { }
255
+ } else if #[ cfg( target_env = "newlib" ) ] {
256
+ #[ link( name = "c" ) ]
257
+ #[ link( name = "m" ) ]
258
+ extern { }
255
259
} else {
256
260
#[ link( name = "c" ) ]
257
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
+ } else if #[ cfg( target_env = "newlib" ) ] {
896
+ mod newlib;
897
+ pub use self :: newlib:: * ;
891
898
} else if #[ cfg( any( target_os = "linux" ,
892
899
target_os = "android" ,
893
900
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