Skip to content

Commit 18c39e1

Browse files
committed
msvc: Fix the link name for the lgamma
The function is apparently just called lgamma on MSVC
1 parent 407fb29 commit 18c39e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mod m {
3737
#[link_name="lgamma_r"]
3838
pub fn lgamma(n: c_double, sign: &mut c_int) -> c_double;
3939
#[cfg(windows)]
40-
#[link_name="__lgamma_r"]
40+
#[link_name="lgamma"]
4141
pub fn lgamma(n: c_double, sign: &mut c_int) -> c_double;
4242
}
4343
}

0 commit comments

Comments
 (0)