diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2007-04-04 12:22:03 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2007-04-04 12:22:03 +0000 |
commit | c0f3f0d55f467719b3b1e2a70996447cd9456a5d (patch) | |
tree | f682392f18dc2ad1190d9ee7d2401bd856a32b2d /gst/gst.override | |
parent | 6baee7881d43801b290f6d6576a45818f20c79b4 (diff) |
gst/: Fix the build for x86_64 when compiling against Python 2.5.
Original commit message from CVS:
* gst/common.h:
* gst/gst.override:
* gst/gstbuffer.override:
* gst/gstcaps.override:
* gst/gststructure.override:
* gst/gsttaglist.override:
* gst/interfaces.override:
Fix the build for x86_64 when compiling against Python 2.5.
Keeps backwards compatibility with Python 2.4. Tested on Ubuntu
Edgy 32-bit with python 2.4 & Feisty 64-bit with Python 2.4 & 2.5
Fixes #415003.
Diffstat (limited to 'gst/gst.override')
-rw-r--r-- | gst/gst.override | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/gst.override b/gst/gst.override index c5b265f..77699e6 100644 --- a/gst/gst.override +++ b/gst/gst.override @@ -58,6 +58,11 @@ headers #include <compile.h> #include <frameobject.h> +/* Boonky define that allows for backwards compatibility with Python 2.4 */ +#if PY_VERSION_HEX < 0x02050000 +#define Py_ssize_t int +#endif + GST_DEBUG_CATEGORY_EXTERN (python_debug); GST_DEBUG_CATEGORY_EXTERN (pygst_debug); #define GST_CAT_DEFAULT pygst_debug @@ -1030,7 +1035,7 @@ gst_type_find_peek_handler (gpointer data, gint64 offset, guint size) goto beach; } else { gchar *str; - int len; + Py_ssize_t len; if ((PyString_AsStringAndSize(py_ret, &str, &len)) == -1) { Py_DECREF (py_ret); |