diff --git a/sip/siplib/sip.h b/sip/siplib/sip.h index 75cc20d9..04d1463b 100644 --- a/sip/siplib/sip.h +++ b/sip/siplib/sip.h @@ -55,7 +55,7 @@ extern "C" { * Define the SIP version number. */ #define SIP_VERSION 0x040c00 -#define SIP_VERSION_STR "4.12-snapshot-eac351f5cca7" +#define SIP_VERSION_STR "4.12-snapshot-24f170d5c2dd" /* @@ -298,6 +298,13 @@ typedef int sip_gilstate_t; * Some convenient function pointers. */ + +/* + * forward declare these structures + */ +struct _sipSimpleWrapper; +struct _sipTypeDef; + /* * The operation an access function is being asked to perform. */ diff --git a/sip/siplib/siplib.c b/sip/siplib/siplib.c index ce2da003..e0a0e9af 100644 --- a/sip/siplib/siplib.c +++ b/sip/siplib/siplib.c @@ -6016,8 +6016,8 @@ static int add_lazy_container_attrs(sipTypeDef *td, sipContainerDef *cod, vd->vd_type = (vd_8->vd_is_static ? ClassVariable : InstanceVariable); vd->vd_name = vd_8->vd_name; - vd->vd_getter = (PyCFunction)vd_8->vd_getter; - vd->vd_setter = (PyCFunction)vd_8->vd_setter; + vd->vd_getter = (PyMethodDef *)vd_8->vd_getter; + vd->vd_setter = (PyMethodDef *)vd_8->vd_setter; vd->vd_deleter = NULL; vd->vd_docstring = NULL;