Skip to content

Commit 79d7388

Browse files
crabtwbrson
authored andcommitted
add lgamma functions for FreeBSD
1 parent c847c80 commit 79d7388

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/cmath.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ native mod c_double {
4949
pure fn ldexp(x: c_double, n: c_int) -> c_double;
5050
#[cfg(target_os = "linux")]
5151
#[cfg(target_os = "macos")]
52+
#[cfg(target_os = "freebsd")]
5253
#[link_name="lgamma_r"] pure fn lgamma(n: c_double,
5354
&sign: c_int) -> c_double;
5455
#[cfg(target_os = "win32")]
@@ -130,6 +131,7 @@ native mod c_float {
130131

131132
#[cfg(target_os="linux")]
132133
#[cfg(target_os="macos")]
134+
#[cfg(target_os="freebsd")]
133135
#[link_name="lgammaf_r"] pure fn lgamma(n: c_float,
134136
&sign: c_int) -> c_float;
135137

0 commit comments

Comments
 (0)