Partial support for Python 2.4.

This commit is contained in:
Ruda Moura 2009-09-08 03:32:37 +02:00 committed by lericson
parent ce9359fac7
commit a3b31a5dbb

View File

@ -41,6 +41,11 @@
#include <Python.h>
#include <libmemcached/memcached.h>
/* Py_ssize_t appeared in Python 2.5. */
#ifndef PY_SSIZE_T_MAX
typedef ssize_t Py_ssize_t;
#endif
/* Server types. */
#define PYLIBMC_SERVER_TCP (1 << 0)
#define PYLIBMC_SERVER_UDP (1 << 1)