fixed python <= 2.5 support

This commit is contained in:
roberto@mrspurr
2011-02-19 08:55:41 +01:00
parent eea64e0178
commit ec08632a29
+4
View File
@@ -32,6 +32,10 @@
#define UWSGI_RELEASE_GIL
#endif
#ifndef PyVarObject_HEAD_INIT
#define PyVarObject_HEAD_INIT(x, y) PyObject_HEAD_INIT(x) y,
#endif
PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t);