mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
auto merge of #12078 : colemickens/rust/patch-2, r=alexcrichton
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user