Clearer error message when compiling on python >= 3.3

This commit is contained in:
Kovid Goyal 2014-03-08 21:19:05 +05:30
parent f078cd7168
commit 27327e811b

View File

@ -21,7 +21,10 @@
#include <unicode/utrans.h> #include <unicode/utrans.h>
#include <unicode/unorm.h> #include <unicode/unorm.h>
#if PY_VERSION_HEX < 0x03030000 #if PY_VERSION_HEX >= 0x03030000
#error Not implemented for python >= 3.3
#endif
// Roundtripping will need to be implemented differently for python 3.3+ where strings are stored with variable widths // Roundtripping will need to be implemented differently for python 3.3+ where strings are stored with variable widths
#ifndef NO_PYTHON_TO_ICU #ifndef NO_PYTHON_TO_ICU
@ -67,5 +70,4 @@ static PyObject* icu_to_python(UChar *src, int32_t sz) {
} }
#endif #endif
#endif