Add additional definitions for `_PyImport_Frozen*`

This commit is contained in:
messense 2023-12-03 21:47:00 +08:00
parent 1556845e78
commit 28dda997f9
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 6 additions and 0 deletions

View File

@ -65,4 +65,10 @@ pub struct _frozen {
extern "C" {
#[cfg(not(PyPy))]
pub static mut PyImport_FrozenModules: *const _frozen;
#[cfg(all(not(PyPy), Py_3_11))]
pub static mut _PyImport_FrozenBootstrap: *const _frozen;
#[cfg(all(not(PyPy), Py_3_11))]
pub static mut _PyImport_FrozenStdlib: *const _frozen;
#[cfg(all(not(PyPy), Py_3_11))]
pub static mut _PyImport_FrozenTest: *const _frozen;
}