Fixed undefined symbol: PyLong_AsSize_t
on PyPy
This commit is contained in:
parent
73170cc104
commit
fa7d24005b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user