File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -278,13 +278,17 @@ impl ::Clone for fpos_t {
278
278
}
279
279
280
280
// Special handling for all print and scan type functions because of https://github.com/rust-lang/libc/issues/2860
281
- #[ cfg_attr(
282
- all( windows, target_env = "msvc" ) ,
283
- link( name = "legacy_stdio_definitions" )
284
- ) ]
285
- extern "C" {
286
- pub fn printf ( format : * const c_char , ...) -> :: c_int ;
287
- pub fn fprintf ( stream : * mut FILE , format : * const c_char , ...) -> :: c_int ;
281
+ cfg_if ! {
282
+ if #[ cfg( not( feature = "rustc-dep-of-std" ) ) ] {
283
+ #[ cfg_attr(
284
+ all( windows, target_env = "msvc" ) ,
285
+ link( name = "legacy_stdio_definitions" )
286
+ ) ]
287
+ extern "C" {
288
+ pub fn printf( format: * const c_char, ...) -> :: c_int;
289
+ pub fn fprintf( stream: * mut FILE , format: * const c_char, ...) -> :: c_int;
290
+ }
291
+ }
288
292
}
289
293
290
294
extern "C" {
You can’t perform that action at this time.
0 commit comments