ffi: define _Py_PackageContext

This is needed for PyOxidizer.
This commit is contained in:
Gregory Szorc 2021-08-08 10:35:20 -07:00
parent e9cccd74bf
commit 42eb8f26ae
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}