Skip to content

Commit

Permalink
Only link libc on *nix platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 9, 2024
1 parent 86e7875 commit 2cc029e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run-make/fmt-write-bloat/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use core::fmt;
use core::fmt::Write;

#[link(name = "c")]
#[cfg_attr(not(windows), link(name = "c"))]
extern "C" {}

struct Dummy;
Expand Down

0 comments on commit 2cc029e

Please sign in to comment.