gst/pbutils.override: Fix compilation against Python 2.4.
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 15 Jan 2008 11:41:51 +0000 (11:41 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 15 Jan 2008 11:41:51 +0000 (11:41 +0000)
Original commit message from CVS:
* gst/pbutils.override:
Fix compilation against Python 2.4.
Fixes: #509522

ChangeLog
common
gst/pbutils.override

index 809bca1..d739914 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-15  Jan Schmidt  <jan.schmidt@sun.com>
+
+       * gst/pbutils.override:
+       Fix compilation against Python 2.4.
+       Fixes: #509522
+
 2008-01-14  Edward Hervey  <edward.hervey@collabora.co.uk>
 
        * configure.ac:
diff --git a/common b/common
index 36e8d05..0efbab8 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 36e8d05157d6c831e0d3919ae2ee9c342498eda8
+Subproject commit 0efbab89d333b5d07cc7da1a501c38edf5bb4f72
index 27a992f..15b8bc0 100644 (file)
@@ -33,6 +33,11 @@ headers
 GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
 #define GST_CAT_DEFAULT pygst_debug
 
+/* Boonky define that allows for backwards compatibility with Python 2.4 */
+#if PY_VERSION_HEX < 0x02050000
+#define Py_ssize_t int
+#endif
+
 #ifdef HAVE_PLUGINS_INSTALL
 static void
 install_plugins_result_handler(GstInstallPluginsReturn result, gpointer user_data)