Merge pull request #1767 from indygreg/packagecontext

ffi: define _Py_PackageContext
This commit is contained in:
David Hewitt 2021-08-08 19:23:18 +01:00 committed by GitHub
commit 3de5591534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}