pyfec: make it compatible with Python 2.4 as well as Python 2.5

This commit is contained in:
Zooko O'Whielacronx 2007-01-30 15:58:45 -07:00
parent 4a9cd3d977
commit 0c36eb546e
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;