1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use libc::c_int;

#[cfg_attr(windows, link(name = "pythonXY"))]
extern "C" {
    #[cfg(all(unix, Py_3_7))]
    pub fn PyOS_BeforeFork() -> ();
    #[cfg(all(unix, Py_3_7))]
    pub fn PyOS_AfterFork_Parent() -> ();
    #[cfg(all(unix, Py_3_7))]
    pub fn PyOS_AfterFork_Child() -> ();

    pub fn PyOS_InterruptOccurred() -> c_int;
    #[cfg(not(Py_3_10))]
    pub fn PyOS_InitInterrupts() -> ();
    pub fn PyOS_AfterFork() -> ();
}