summaryrefslogtreecommitdiffstats
path: root/glib/pyglib-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'glib/pyglib-private.h')
-rw-r--r--glib/pyglib-private.h5
1 files changed, 5 insertions, 0 deletions
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;