Fixed undefined symbol: PyLong_AsSize_t on PyPy

This commit is contained in:
Devaev Maxim 2014-02-07 17:11:06 +04:00
parent 73170cc104
commit fa7d24005b

View File

@ -61,6 +61,10 @@
#define to_encoding(x) PyUnicode_DecodeASCII(x, strlen(x), "strict")
#endif
#ifdef PYPY_VERSION
#define PyLong_AsSize_t (size_t)PyLong_AsUnsignedLong
#endif
#ifndef Py_hash_t
#define Py_hash_t long
#endif