lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1349966 - /lucene/pylucene/trunk/jcc/jcc/sources/JArray.h
Date Wed, 13 Jun 2012 17:33:52 GMT
Author: vajda
Date: Wed Jun 13 17:33:52 2012
New Revision: 1349966

URL: http://svn.apache.org/viewvc?rev=1349966&view=rev
Log:
added missing Py_ssize_t definition for Python 2.4

Modified:
    lucene/pylucene/trunk/jcc/jcc/sources/JArray.h

Modified: lucene/pylucene/trunk/jcc/jcc/sources/JArray.h
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/sources/JArray.h?rev=1349966&r1=1349965&r2=1349966&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/sources/JArray.h (original)
+++ lucene/pylucene/trunk/jcc/jcc/sources/JArray.h Wed Jun 13 17:33:52 2012
@@ -19,6 +19,10 @@
 #include <Python.h>
 #include "macros.h"
 
+#if PY_VERSION_HEX < 0x02050000
+typedef int Py_ssize_t;
+#endif
+
 extern jobjectArray fromPySequence(jclass cls, PyObject *sequence);
 extern PyObject *PyErr_SetJavaError();
 



Mime
View raw message