mirror of
https://github.com/python/cpython.git
synced 2025-08-08 19:09:46 +00:00
#4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
compilation fails with "undefined reference to _Py_ascii_whitespace" Will backport to 2.6.
This commit is contained in:
parent
0ecbccad2d
commit
07d539d08b
3 changed files with 11 additions and 1 deletions
|
@ -354,7 +354,7 @@ typedef PY_UNICODE_TYPE Py_UNICODE;
|
|||
in most situations is solely ASCII whitespace, we optimize for the common
|
||||
case by using a quick look-up table with an inlined check.
|
||||
*/
|
||||
extern const unsigned char _Py_ascii_whitespace[];
|
||||
PyAPI_DATA(const unsigned char) _Py_ascii_whitespace[];
|
||||
|
||||
#define Py_UNICODE_ISSPACE(ch) \
|
||||
((ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue