mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
Update link_name=... -> link(name=...
This commit is contained in:
parent
c13a929d58
commit
ee608cb935
@ -520,7 +520,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
|
||||
|
||||
~~~~
|
||||
#[cfg(target_os = "win32", target_arch = "x86")]
|
||||
#[link_name = "kernel32"]
|
||||
#[link(name = "kernel32")]
|
||||
extern "stdcall" {
|
||||
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user