commit | 2c57e36e1230e7a37d2f3ffbf2563d423245e199 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Tue Sep 15 17:30:53 2015 -0700 |
committer | Alex Crichton <alex@alexcrichton.com> | Tue Sep 15 17:30:53 2015 -0700 |
tree | addc496846a62cd1b0187e3acae543bbeb4006c2 | |
parent | 9d5b8b2c5a7903179fc8f558feaccf69822339b4 [diff] [blame] |
Move linkage to specific modules
diff --git a/src/windows.rs b/src/windows.rs index 159a311..cade64d 100644 --- a/src/windows.rs +++ b/src/windows.rs
@@ -667,6 +667,12 @@ pub const FIONBIO: c_long = -0x7FFB9982; +#[cfg(target_env = "msvc")] +#[link(name = "kernel32")] +#[link(name = "shell32")] +#[link(name = "msvcrt")] +extern {} + extern { #[link_name = "_chmod"] pub fn chmod(path: *const c_char, mode: c_int) -> c_int;