ffi: define _Py_PackageContext
This is needed for PyOxidizer.
This commit is contained in:
parent
e9cccd74bf
commit
42eb8f26ae
|
@ -146,4 +146,8 @@ pub unsafe fn PyModule_FromDefAndSpec(def: *mut PyModuleDef, spec: *mut PyObject
|
|||
)
|
||||
}
|
||||
|
||||
// skipped non-limited _Py_PackageContext
|
||||
#[cfg(not(Py_LIMITED_API))]
|
||||
#[cfg_attr(windows, link(name = "pythonXY"))]
|
||||
extern "C" {
|
||||
pub static mut _Py_PackageContext: *const c_char;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue