Fix build error with Python3 due to PyString_FromFormat.
This commit is contained in:
parent
71ca619e26
commit
9a4e002864
@ -61,6 +61,7 @@
|
||||
#define PyInteger_Type PyLong_Type
|
||||
#define to_path(x) to_unicode(x, Py_FileSystemDefaultEncoding, "strict")
|
||||
#define to_encoding(x) PyUnicode_DecodeASCII(x, strlen(x), "strict")
|
||||
#define PyString_FromFormat(s, ...) PyUnicode_FromFormat(s, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifdef PYPY_VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user