Skip to content

Commit 2cc029e

Browse files
committed
Only link libc on *nix platforms
1 parent 86e7875 commit 2cc029e

File tree

1 file changed

+1
-1
lines changed
  • tests/run-make/fmt-write-bloat

1 file changed

+1
-1
lines changed

tests/run-make/fmt-write-bloat/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use core::fmt;
66
use core::fmt::Write;
77

8-
#[link(name = "c")]
8+
#[cfg_attr(not(windows), link(name = "c"))]
99
extern "C" {}
1010

1111
struct Dummy;

0 commit comments

Comments
 (0)