diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | glib/pyglib-private.h | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2008-07-24 Johan Dahlin <johan@gnome.org> + Bug 544600 – pygobject building failed since 839 revision, + error : "Py_ssize_t" undeclared + + * glib/pyglib-private.h: Add backward compatibility macros for + python 2.4. + * gio/gfile.override: * gio/gfileenumerator.override: * gio/ginputstream.override: diff --git a/glib/pyglib-private.h b/glib/pyglib-private.h index be38be4..dd0b2ce 100644 --- a/glib/pyglib-private.h +++ b/glib/pyglib-private.h @@ -27,6 +27,11 @@ G_BEGIN_DECLS +/* Compilation on Python 2.4 */ +#if PY_VERSION_HEX < 0x02050000 +typedef int Py_ssize_t; +#endif + struct _PyGLib_Functions { gboolean threads_enabled; PyObject *gerror_exception; |
