Skip to content

Commit

Permalink
Fix wrong link names on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiersg committed Feb 12, 2017
1 parent badd513 commit 7298535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/windows/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pub mod cmath {
use libc::{c_float, c_int};

extern {
#[cfg_attr(target_env = "msvc", link_name = "__lgamma_r")]
#[cfg_attr(target_env = "msvc", link_name = "__lgammaf_r")]
pub fn lgammaf_r(n: c_float, sign: &mut c_int) -> c_float;

#[cfg_attr(target_env = "msvc", link_name = "_hypot")]
#[cfg_attr(target_env = "msvc", link_name = "_hypotf")]
pub fn hypotf(x: c_float, y: c_float) -> c_float;
}

Expand Down

0 comments on commit 7298535

Please sign in to comment.