> Afaik, this is available to Python>=3.1 as well Seems as if this was not the case: adding the appropiate #ifdef solves the issue -- patch attached.
Jan
From be17e5f7de296e5de184a5de9db4003c68f786af Mon Sep 17 00:00:00 2001 From: Jan Haag <[email protected]> Date: Fri, 16 Jul 2010 17:03:45 +0200 Subject: [PATCH] fixed #ifdef for SIP_USE_PYCAPSULE in PyMethodDef array. --- siplib/voidptr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/siplib/voidptr.c b/siplib/voidptr.c index b6aa4d7..c3c9942 100644 --- a/siplib/voidptr.c +++ b/siplib/voidptr.c @@ -309,7 +309,9 @@ static PyObject *sipVoidPtr_setwriteable(sipVoidPtrObject *v, PyObject *arg) /* The methods data structure. */ static PyMethodDef sipVoidPtr_Methods[] = { #if PY_VERSION_HEX >= 0x03010000 +#if defined(SIP_USE_PYCAPSULE) {"ascapsule", (PyCFunction)sipVoidPtr_ascapsule, METH_NOARGS, NULL}, +#endif #endif {"ascobject", (PyCFunction)sipVoidPtr_ascobject, METH_NOARGS, NULL}, {"asstring", (PyCFunction)sipVoidPtr_asstring, METH_KEYWORDS, NULL}, -- 1.7.1
0x1665A74C.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
