Skip to content

Commit

Permalink
Remove unused #[link_name = "m"] attributes
Browse files Browse the repository at this point in the history
These were perhaps supposed to be `#[link(name = "m")]` but linking libm should be handled by the libc crate anyway.
  • Loading branch information
ollie27 committed Jan 3, 2020
1 parent 1ed41b0 commit 83333fe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libstd/sys/unix/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/sys/vxworks/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/sys/windows/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83333fe

Please sign in to comment.