Fix link name for extern "C" in msvc

This commit is contained in:
DianQK 2023-12-01 22:16:32 +08:00
parent 8d69a1e69e
commit 436d4f62e0
No known key found for this signature in database
GPG Key ID: 46BDB1AC96C48912

View File

@ -6,7 +6,8 @@
extern crate no_builtins;
extern crate foo;
#[link(name = "c")]
#[cfg_attr(unix, link(name = "c"))]
#[cfg_attr(target_env = "msvc", link(name = "msvcrt"))]
extern "C" {}
#[start]