From 07d539d08bb54628d20978e97eb6e0ba263ac581 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Tue, 14 Oct 2008 21:47:22 +0000 Subject: #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. --- Include/unicodeobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include') 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)) -- cgit v1.2.1