gst/: Make it compilable on Python 2.4 and Python 2.5

Original commit message from CVS:
* gst/common.h:
* gst/gsttaglist.override:

Make it compilable on Python 2.4 and Python 2.5
This commit is contained in:
Johan Dahlin 2007-03-19 01:21:12 +00:00
parent 1b1b56c762
commit 2d61ba0895
3 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2007-03-18 Johan Dahlin <jdahlin@async.com.br>
* gst/common.h:
* gst/gsttaglist.override:
Make it compilable on Python 2.4 and Python 2.5
2007-03-18 Johan Dahlin <jdahlin@async.com.br>
reviewed by: Edward Hervey <edward@fluendo.com>

View file

@ -35,6 +35,11 @@
typedef destructor freefunc;
#endif
#if PY_VERSION_HEX < 0x02050000
#define ssizeargfunc intargfunc
#define ssizessizeargfunc intintargfunc
#endif
typedef struct {
PyGObject *pad;
GClosure *link_function;

View file

@ -129,13 +129,13 @@ _wrap_gst_tag_list_contains(PyGObject *self, PyObject *py_key)
static PySequenceMethods _wrap_gst_tag_list_tp_as_sequence = {
(inquiry)NULL,
(binaryfunc)NULL,
(intargfunc)NULL,
(intargfunc)NULL,
(intintargfunc)NULL,
(ssizeargfunc)NULL,
(ssizeargfunc)NULL,
(ssizessizeargfunc)NULL,
(intobjargproc)NULL,
(intintobjargproc)NULL,
(objobjproc)_wrap_gst_tag_list_contains,
(binaryfunc)NULL,
(intargfunc)NULL,
(ssizeargfunc)NULL,
};