Gate PyModuleGetNameObject on PyPy.
This commit is contained in:
parent
74f981120d
commit
6395c86de4
|
@ -25,6 +25,7 @@ extern "C" {
|
|||
pub fn PyModule_New(name: *const c_char) -> *mut PyObject;
|
||||
#[cfg_attr(PyPy, link_name = "PyPyModule_GetDict")]
|
||||
pub fn PyModule_GetDict(arg1: *mut PyObject) -> *mut PyObject;
|
||||
#[cfg(not(PyPy))]
|
||||
pub fn PyModule_GetNameObject(arg1: *mut PyObject) -> *mut PyObject;
|
||||
#[cfg_attr(PyPy, link_name = "PyPyModule_GetName")]
|
||||
pub fn PyModule_GetName(arg1: *mut PyObject) -> *const c_char;
|
||||
|
|
Loading…
Reference in New Issue