gst/: Make it compilable on Python 2.4 and Python 2.5
authorJohan Dahlin <johan@gnome.org>
Mon, 19 Mar 2007 01:21:12 +0000 (01:21 +0000)
committerJohan Dahlin <johan@gnome.org>
Mon, 19 Mar 2007 01:21:12 +0000 (01:21 +0000)
Original commit message from CVS:
* gst/common.h:
* gst/gsttaglist.override:

Make it compilable on Python 2.4 and Python 2.5

ChangeLog
gst/common.h
gst/gsttaglist.override

index d412845..3db0641 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
 2007-03-18  Johan Dahlin  <jdahlin@async.com.br>
 
-       reviewed by: Edward Hervey  <edward@fluendo.com>
+       * 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>
+       
        * gst/__init__.py: Implement multiplication, divison and float 
        coercing for fractions.
 
index 1da5b12..528e86b 100644 (file)
   typedef destructor freefunc;
 #endif
 
+#if PY_VERSION_HEX < 0x02050000
+#define ssizeargfunc intargfunc
+#define ssizessizeargfunc intintargfunc
+#endif
+
 typedef struct {
        PyGObject *pad;
        GClosure *link_function;
index 04d7e2c..9d65440 100644 (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,
 };