Skip to content

Commit

Permalink
add missing #[no_mangle]
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jun 9, 2020
1 parent 74fd3ea commit b23c1ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hermit-sys/src/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub extern "C" fn atan2(a: f64, b: f64) -> f64 {
libm::atan2(a, b)
}

#[no_mangle]
pub extern "C" fn atan2f(a: f32, b: f32) -> f32 {
libm::atan2f(a, b)
}
Expand Down Expand Up @@ -144,7 +145,8 @@ pub extern "C" fn log(x: f64) -> f64 {
libm::log(x)
}

pub fn logf(x: f32) -> f32 {
#[no_mangle]
pub extern "C" fn logf(x: f32) -> f32 {
libm::logf(x)
}

Expand Down

0 comments on commit b23c1ca

Please sign in to comment.