451da07718
Now you can write: extern { f() -> int; } and f will be accessible in the enclosing scope.
10 lines
162 B
Rust
10 lines
162 B
Rust
#[abi = "cdecl"];
|
|
#[link_name = "rustrt"];
|
|
#[link(name = "anonexternmod",
|
|
vers = "0.1")];
|
|
|
|
#[crate_type = "lib"];
|
|
extern {
|
|
fn last_os_error() -> ~str;
|
|
}
|