Skip to content

Commit 7298535

Browse files
committed
Fix wrong link names on windows
1 parent badd513 commit 7298535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/windows/f32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pub mod cmath {
1616
use libc::{c_float, c_int};
1717

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

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

0 commit comments

Comments
 (0)