Skip to content

Commit 83333fe

Browse files
committed
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.
1 parent 1ed41b0 commit 83333fe

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/libstd/sys/unix/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn acosf(n: c_float) -> c_float;

src/libstd/sys/vxworks/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn acosf(n: c_float) -> c_float;

src/libstd/sys/windows/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn asin(n: c_double) -> c_double;

0 commit comments

Comments
 (0)