mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Clearer error message when compiling on python >= 3.3
This commit is contained in:
parent
f078cd7168
commit
27327e811b
@ -21,7 +21,10 @@
|
||||
#include <unicode/utrans.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
|
||||
|
||||
#ifndef NO_PYTHON_TO_ICU
|
||||
@ -67,5 +70,4 @@ static PyObject* icu_to_python(UChar *src, int32_t sz) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user