diff options
| author | Noxivs <[email protected]> | 2014-05-05 02:43:10 +0200 |
|---|---|---|
| committer | Noxivs <[email protected]> | 2014-05-05 02:43:10 +0200 |
| commit | 5e6b155009cc25d80a7ebf0e85f6b2e0f565a55e (patch) | |
| tree | e8902c9eeda3e6509f95f3dc7cd1ef0a2ebf4a44 | |
| parent | link win32 (diff) | |
| download | rust-openssl-5e6b155009cc25d80a7ebf0e85f6b2e0f565a55e.tar.xz rust-openssl-5e6b155009cc25d80a7ebf0e85f6b2e0f565a55e.zip | |
better linkage
| -rw-r--r-- | ssl/ffi.rs | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -99,9 +99,6 @@ pub static XN_FLAG_MULTILINE: c_ulong = 0x2a40006; #[link(name="ssl")] #[link(name="crypto")] -#[link(name="gdi32")] -#[link(name="wsock32")] -#[link(name="m")] extern "C" { pub fn CRYPTO_num_locks() -> c_int; pub fn CRYPTO_set_locking_callback(func: extern "C" fn(mode: c_int, @@ -159,3 +156,9 @@ extern "C" { pub fn BIO_read(b: *BIO, buf: *c_void, len: c_int) -> c_int; pub fn BIO_write(b: *BIO, buf: *c_void, len: c_int) -> c_int; } + +#[cfg(target_os = "win32")] +#[link(name="gdi32")] +#[link(name="wsock32")] +#[link(name="m")] +extern { } |