summaryrefslogtreecommitdiff
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 21:47:22 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 21:47:22 +0000
commit1ae948cab5f077d9c406c1707ee353d56270bfc2 (patch)
treecdfdee0f5fd5c514caaa3e86caea658bc2dab8bd /Include/unicodeobject.h
parente972702c26fc40b429c3c99c8a1733e65532fea9 (diff)
downloadcpython-1ae948cab5f077d9c406c1707ee353d56270bfc2.tar.gz
#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.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 057f770539..ee9fec16fe 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -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))