more fixes for 1.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a64330d5eb
commit
2af5736adc
1 changed files with 6 additions and 2 deletions
|
|
@ -69,6 +69,10 @@ PyString_FromFormat(const char *fmt, ...) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_Del(op) PyMem_Del((op))
|
||||
#endif
|
||||
|
||||
#if defined(SWIG_COBJECT_TYPES)
|
||||
#if !defined(SWIG_COBJECT_PYTHON)
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
@ -162,7 +166,7 @@ PySwigObject_compare(PySwigObject *v, PySwigObject *w)
|
|||
SWIGRUNTIME void
|
||||
PySwigObject_dealloc(PySwigObject *self)
|
||||
{
|
||||
PyObject_DEL(self);
|
||||
PyObject_Del(self);
|
||||
}
|
||||
|
||||
SWIGRUNTIME PyTypeObject*
|
||||
|
|
@ -351,7 +355,7 @@ SWIGRUNTIME void
|
|||
PySwigPacked_dealloc(PySwigPacked *self)
|
||||
{
|
||||
free(self->pack);
|
||||
PyObject_DEL(self);
|
||||
PyObject_Del(self);
|
||||
}
|
||||
|
||||
SWIGRUNTIME PyTypeObject*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue