Stabilize the bundle
native library modifier
This commit is contained in:
parent
d7b8d77be5
commit
a8ee1f3a4f
35 changed files with 91 additions and 196 deletions
|
@ -16,10 +16,10 @@ Using this declaration, it must be called with at least one argument, so
|
|||
simply calling `printf()` is invalid. But the following uses are allowed:
|
||||
|
||||
```
|
||||
# #![feature(static_nobundle)]
|
||||
# use std::os::raw::{c_char, c_int};
|
||||
# #[cfg_attr(all(windows, target_env = "msvc"),
|
||||
# link(name = "legacy_stdio_definitions", kind = "static-nobundle"))]
|
||||
# link(name = "legacy_stdio_definitions",
|
||||
# kind = "static", modifiers = "-bundle"))]
|
||||
# extern "C" { fn printf(_: *const c_char, ...) -> c_int; }
|
||||
# fn main() {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue