From 9d3bfa8fdf3d4120a003a50da171403bd8b9a1bb Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 15 Jan 2008 11:41:51 +0000 Subject: [PATCH] gst/pbutils.override: Fix compilation against Python 2.4. Original commit message from CVS: * gst/pbutils.override: Fix compilation against Python 2.4. Fixes: #509522 --- ChangeLog | 6 ++++++ common | 2 +- gst/pbutils.override | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 809bca110c..d739914c5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-15 Jan Schmidt + + * gst/pbutils.override: + Fix compilation against Python 2.4. + Fixes: #509522 + 2008-01-14 Edward Hervey * configure.ac: diff --git a/common b/common index 36e8d05157..0efbab89d3 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 36e8d05157d6c831e0d3919ae2ee9c342498eda8 +Subproject commit 0efbab89d333b5d07cc7da1a501c38edf5bb4f72 diff --git a/gst/pbutils.override b/gst/pbutils.override index 27a992fa02..15b8bc0baa 100644 --- a/gst/pbutils.override +++ b/gst/pbutils.override @@ -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)