Merge pull request #1843 from chrisburr/patch-1
PyTypeObject::ob_base isn't available in PyPy
This commit is contained in:
commit
46e17f1458
1 changed files with 1 additions and 5 deletions
|
|
@ -414,11 +414,7 @@ SwigPyBuiltin_ThisClosure (PyObject *self, void *SWIGUNUSEDPARM(closure)) {
|
||||||
SWIGINTERN void
|
SWIGINTERN void
|
||||||
SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
|
SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
|
||||||
{
|
{
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
Py_TYPE(type) = metatype;
|
||||||
type->ob_base.ob_base.ob_type = metatype;
|
|
||||||
#else
|
|
||||||
type->ob_type = metatype;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue