Mercurial > cpython-lru_cache-weakref
diff Include/unicodeobject.h @ 49502:e1a88e8b9649 2.6
Merged revisions 66891 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66891 | amaury.forgeotdarc | 2008-10-14 23:47:22 +0200 (mar., 14 oct. 2008) | 5 lines
#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.
........
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Tue, 14 Oct 2008 22:00:06 +0000 |
| parents | 47ef9a806ce9 |
| children | df3923c36ec5 027a6f3ac874 |
line wrap: on
line diff
--- a/Include/unicodeobject.h Mon Oct 13 11:28:58 2008 +0000 +++ b/Include/unicodeobject.h Tue Oct 14 22:00:06 2008 +0000 @@ -354,7 +354,7 @@ 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))
