1 2 3 4 5 6 7 8
use libc::c_int; #[cfg_attr(windows, link(name="pythonXY"))] extern "C" { pub fn PyOS_InterruptOccurred() -> c_int; pub fn PyOS_InitInterrupts() -> (); pub fn PyOS_AfterFork() -> (); }
1 2 3 4 5 6 7 8
use libc::c_int; #[cfg_attr(windows, link(name="pythonXY"))] extern "C" { pub fn PyOS_InterruptOccurred() -> c_int; pub fn PyOS_InitInterrupts() -> (); pub fn PyOS_AfterFork() -> (); }