Skip to content

Commit 27e4681

Browse files
committed
---
yaml --- r: 7064 b: refs/heads/master c: b1e2f04 h: refs/heads/master v: v3
1 parent 8ece065 commit 27e4681

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c74d5ce0468054c327fecc1302275c66ed0b8f2c
2+
refs/heads/master: b1e2f04eb4b7a8229c0f776e5a1bd1173c5e1b1c

trunk/src/libcore/cmath.rs

+5
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ native mod c_double {
4747
pure fn frexp(n: c_double, &value: c_int) -> c_double;
4848
pure fn hypot(x: c_double, y: c_double) -> c_double;
4949
pure fn ldexp(x: c_double, n: c_int) -> c_double;
50+
#[cfg(target_os = "linux")]
51+
#[cfg(target_os = "macos")]
5052
#[link_name="lgamma_r"] pure fn lgamma(n: c_double,
5153
&sign: c_int) -> c_double;
54+
#[cfg(target_os = "win32")]
55+
#[link_name="__lgamma_r"] pure fn lgamma(n: c_double,
56+
&sign: c_int) -> c_double;
5257
// renamed: log is a reserved keyword; ln seems more natural, too
5358
#[link_name="log"] pure fn ln(n: c_double) -> c_double;
5459
// renamed: "logb" /often/ is confused for log2 by beginners

0 commit comments

Comments
 (0)