From 83333fe85b25c77f35b79bf06cde69b889558dca Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Fri, 3 Jan 2020 23:41:11 +0000 Subject: [PATCH] Remove unused `#[link_name = "m"]` attributes These were perhaps supposed to be `#[link(name = "m")]` but linking libm should be handled by the libc crate anyway. --- src/libstd/sys/unix/cmath.rs | 1 - src/libstd/sys/vxworks/cmath.rs | 1 - src/libstd/sys/windows/cmath.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/libstd/sys/unix/cmath.rs b/src/libstd/sys/unix/cmath.rs index 2916ebe444059..f327b69fc7541 100644 --- a/src/libstd/sys/unix/cmath.rs +++ b/src/libstd/sys/unix/cmath.rs @@ -2,7 +2,6 @@ use libc::{c_double, c_float}; -#[link_name = "m"] extern "C" { pub fn acos(n: c_double) -> c_double; pub fn acosf(n: c_float) -> c_float; diff --git a/src/libstd/sys/vxworks/cmath.rs b/src/libstd/sys/vxworks/cmath.rs index 2916ebe444059..f327b69fc7541 100644 --- a/src/libstd/sys/vxworks/cmath.rs +++ b/src/libstd/sys/vxworks/cmath.rs @@ -2,7 +2,6 @@ use libc::{c_double, c_float}; -#[link_name = "m"] extern "C" { pub fn acos(n: c_double) -> c_double; pub fn acosf(n: c_float) -> c_float; diff --git a/src/libstd/sys/windows/cmath.rs b/src/libstd/sys/windows/cmath.rs index 7c5bfa1bd0641..6f5d40b494fbe 100644 --- a/src/libstd/sys/windows/cmath.rs +++ b/src/libstd/sys/windows/cmath.rs @@ -2,7 +2,6 @@ use libc::{c_double, c_float}; -#[link_name = "m"] extern "C" { pub fn acos(n: c_double) -> c_double; pub fn asin(n: c_double) -> c_double;