Skip to content

Commit 5d2f295

Browse files
committed
Do not ignore the test on MSVC
1 parent e5bab5d commit 5d2f295

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/run-pass/variadic-ffi.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-msvc -- sprintf isn't a symbol in msvcrt? maybe a #define?
12-
1311
#![feature(libc, std_misc)]
1412

1513
extern crate libc;
1614

1715
use std::ffi::{CStr, CString};
1816
use libc::{c_char, c_int};
1917

20-
18+
#[cfg_attr(windows, link(name = "user32"))]
2119
extern {
20+
#[cfg_attr(windows, link_name="wsprintfA")]
2221
fn sprintf(s: *mut c_char, format: *const c_char, ...) -> c_int;
2322
}
2423

0 commit comments

Comments
 (0)