Skip to content

Commit

Permalink
Don't link legacy_stdio_definitions from std
Browse files Browse the repository at this point in the history
std on Windows does not use `printf` or `fprintf` so never needs the `legacy_stdio_definitions.lib` import library.
  • Loading branch information
ChrisDenton committed Apr 26, 2023
1 parent 5744793 commit 405c98b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/windows/mod.rs
Expand Up @@ -278,6 +278,7 @@ impl ::Clone for fpos_t {
}

// Special handling for all print and scan type functions because of https://github.com/rust-lang/libc/issues/2860
#[cfg(not(feature = "rustc-dep-of-std"))]
#[cfg_attr(
all(windows, target_env = "msvc"),
link(name = "legacy_stdio_definitions")
Expand Down

0 comments on commit 405c98b

Please sign in to comment.