Skip to content

Commit d9f3409

Browse files
davidhewittbazaah
authored andcommitted
fix PyPyModule_ExecDef definition
1 parent f8efced commit d9f3409

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyo3-ffi/src/modsupport.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ extern "C" {
7373
// skipped PyModule_AddStringMacro
7474
pub fn PyModule_SetDocString(arg1: *mut PyObject, arg2: *const c_char) -> c_int;
7575
pub fn PyModule_AddFunctions(arg1: *mut PyObject, arg2: *mut PyMethodDef) -> c_int;
76+
#[cfg_attr(PyPy, link_name = "PyPyModule_ExecDef")]
7677
pub fn PyModule_ExecDef(module: *mut PyObject, def: *mut PyModuleDef) -> c_int;
7778
}
7879

0 commit comments

Comments
 (0)