summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-24 21:46:15 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-24 21:46:15 +0000
commit79647b8122ca20b7ead6ae9deed508037449278e (patch)
treed5c4285e5981f66401fe1983ffb28b9a729693e6
parent4777faab0d31bd883bf2eee600bf8bd32f119600 (diff)
downloadpygobject-79647b8122ca20b7ead6ae9deed508037449278e.tar.gz
pygobject-79647b8122ca20b7ead6ae9deed508037449278e.tar.xz
pygobject-79647b8122ca20b7ead6ae9deed508037449278e.zip
Bug 544600 – pygobject building failed since 839 revision, error :
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. svn path=/trunk/; revision=851
-rw-r--r--ChangeLog6
-rw-r--r--glib/pyglib-private.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f1b2755..7f3e8de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;