pygobject r851 - in trunk: . glib



Author: johan
Date: Thu Jul 24 21:46:15 2008
New Revision: 851
URL: http://svn.gnome.org/viewvc/pygobject?rev=851&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/glib/pyglib-private.h

Modified: trunk/glib/pyglib-private.h
==============================================================================
--- trunk/glib/pyglib-private.h	(original)
+++ trunk/glib/pyglib-private.h	Thu Jul 24 21:46:15 2008
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]