From 729853539e94066ce9953f11db47ef7bae247c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Cassiers?= Date: Sun, 12 Feb 2017 23:35:50 +0100 Subject: [PATCH] Fix wrong link names on windows --- src/libstd/sys/windows/f32.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/windows/f32.rs b/src/libstd/sys/windows/f32.rs index b57aaa4ecd25e..4721858ab7bf5 100644 --- a/src/libstd/sys/windows/f32.rs +++ b/src/libstd/sys/windows/f32.rs @@ -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; }