Fix build error with Python3 due to PyString_FromFormat.

This commit is contained in:
Patrick Steinhardt 2015-03-09 13:35:47 +01:00
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