We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bab5d commit 5d2f295Copy full SHA for 5d2f295
src/test/run-pass/variadic-ffi.rs
@@ -8,17 +8,16 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-// ignore-msvc -- sprintf isn't a symbol in msvcrt? maybe a #define?
12
-
13
#![feature(libc, std_misc)]
14
15
extern crate libc;
16
17
use std::ffi::{CStr, CString};
18
use libc::{c_char, c_int};
19
20
+#[cfg_attr(windows, link(name = "user32"))]
21
extern {
+ #[cfg_attr(windows, link_name="wsprintfA")]
22
fn sprintf(s: *mut c_char, format: *const c_char, ...) -> c_int;
23
}
24
0 commit comments