mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 18:42:27 +00:00
18 lines
464 B
Rust
18 lines
464 B
Rust
#![cfg_attr(any(weak, both), feature(link_arg_attribute))]
|
|
|
|
#[cfg_attr(any(link, both), link(name = "CoreFoundation", kind = "framework"))]
|
|
#[cfg_attr(
|
|
any(weak, both),
|
|
link(name = "-weak_framework", kind = "link-arg", modifiers = "+verbatim"),
|
|
link(name = "CoreFoundation", kind = "link-arg", modifiers = "+verbatim")
|
|
)]
|
|
extern "C" {
|
|
fn CFRunLoopGetTypeID() -> core::ffi::c_ulong;
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
CFRunLoopGetTypeID();
|
|
}
|
|
}
|