mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
pyfec: make it compatible with Python 2.4 as well as Python 2.5
This commit is contained in:
parent
4a9cd3d977
commit
0c36eb546e
@ -128,7 +128,8 @@ reading a file and encoding it piece by piece.
|
||||
|
||||
* Dependencies
|
||||
|
||||
A C compiler is required. For the Python API, Python version 2.5 is required.
|
||||
A C compiler is required. For the Python API, we have tested it with Python
|
||||
v2.4 and v2.5.
|
||||
|
||||
|
||||
* Performance Measurements
|
||||
|
@ -30,6 +30,10 @@
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
|
||||
#if (PY_VERSION_HEX < 0x02050000)
|
||||
typedef int Py_ssize_t;
|
||||
#endif
|
||||
|
||||
#include "fec.h"
|
||||
|
||||
static PyObject *py_fec_error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user