fixed name of initfunc field on _inittab

This commit is contained in:
Alex Gaynor 2022-06-04 22:15:51 -04:00 committed by GitHub
parent 7e7e7ffa63
commit e1c8bda4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ extern "C" {
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct _inittab { pub struct _inittab {
pub name: *const c_char, pub name: *const c_char,
pub initfun: Option<unsafe extern "C" fn() -> *mut PyObject>, pub initfunc: Option<unsafe extern "C" fn() -> *mut PyObject>,
} }
#[cfg_attr(windows, link(name = "pythonXY"))] #[cfg_attr(windows, link(name = "pythonXY"))]