From e1c8bda4ee5ee1c8b210f838c3e7728b20579390 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 4 Jun 2022 22:15:51 -0400 Subject: [PATCH] fixed name of initfunc field on _inittab --- pyo3-ffi/src/cpython/import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-ffi/src/cpython/import.rs b/pyo3-ffi/src/cpython/import.rs index de58935a..f597bf0a 100644 --- a/pyo3-ffi/src/cpython/import.rs +++ b/pyo3-ffi/src/cpython/import.rs @@ -34,7 +34,7 @@ extern "C" { #[derive(Copy, Clone)] pub struct _inittab { pub name: *const c_char, - pub initfun: Option *mut PyObject>, + pub initfunc: Option *mut PyObject>, } #[cfg_attr(windows, link(name = "pythonXY"))]