Skip to content

Commit be8a08b

Browse files
committed
Hopefully make issue 2214 test case work on Windows -- sigh
1 parent cc323d8 commit be8a08b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/run-pass/issue-2214.rs

+5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ fn lgamma(n: c_double, value: &mut int) -> c_double {
88
#[link_name = "m"]
99
#[abi = "cdecl"]
1010
native mod m {
11+
#[cfg(unix)]
1112
#[link_name="lgamma_r"] fn lgamma(n: c_double, sign: &mut c_int)
1213
-> c_double;
14+
#[cfg(windows)]
15+
#[link_name="__lgamma_r"] fn lgamma(n: c_double,
16+
sign: &mut c_int) -> c_double;
17+
1318
}
1419

1520
fn main() {

0 commit comments

Comments
 (0)