1
Fork 0

Stabilize the bundle native library modifier

This commit is contained in:
Vadim Petrochenkov 2022-04-08 18:20:57 +03:00
parent d7b8d77be5
commit a8ee1f3a4f
35 changed files with 91 additions and 196 deletions

View file

@ -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 {