forked from bartvdbraak/blender
* after discussion with cambo on IRC, change the #ifndef's to #undefs instead:
Pre-Python 3.0 has strings default non-unicode, so checks and handling should be done so too.
This commit is contained in:
parent
d1e75c215b
commit
accfa06ede
@ -34,16 +34,14 @@
|
|||||||
#if PY_VERSION_HEX < 0x03000000
|
#if PY_VERSION_HEX < 0x03000000
|
||||||
#define _PyUnicode_AsString PyString_AsString
|
#define _PyUnicode_AsString PyString_AsString
|
||||||
|
|
||||||
#ifndef PyUnicode_Check
|
#undef PyUnicode_Check
|
||||||
#define PyUnicode_Check PyString_Check
|
#define PyUnicode_Check PyString_Check
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PyLong_FromSize_t PyInt_FromLong
|
#define PyLong_FromSize_t PyInt_FromLong
|
||||||
#define PyLong_AsSsize_t PyInt_AsLong
|
#define PyLong_AsSsize_t PyInt_AsLong
|
||||||
|
|
||||||
#ifndef PyLong_Check
|
#undef PyLong_Check
|
||||||
#define PyLong_Check PyInt_Check
|
#define PyLong_Check PyInt_Check
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PyUnicode_FromString PyString_FromString
|
#define PyUnicode_FromString PyString_FromString
|
||||||
#define PyUnicode_FromFormat PyString_FromFormat
|
#define PyUnicode_FromFormat PyString_FromFormat
|
||||||
|
Loading…
Reference in New Issue
Block a user