summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 21:47:22 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 21:47:22 (GMT)
commit07d539d08bb54628d20978e97eb6e0ba263ac581 (patch)
tree839d59e562f597ef5dd5903013f1817523dc4599 /Modules
parent0ecbccad2d032366ffa8a920ac7c159e3772fb27 (diff)
downloadcpython-07d539d08bb54628d20978e97eb6e0ba263ac581.zip
cpython-07d539d08bb54628d20978e97eb6e0ba263ac581.tar.gz
cpython-07d539d08bb54628d20978e97eb6e0ba263ac581.tar.bz2
#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 'Modules')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index f3a9f5c..adb04c0 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -484,6 +484,10 @@ test_u_code(PyObject *self)
Py_UNICODE *value;
int len;
+ /* issue4122: Undefined reference to _Py_ascii_whitespace on Windows */
+ /* Just use the macro and check that it compiles */
+ int x = Py_UNICODE_ISSPACE(25);
+
tuple = PyTuple_New(1);
if (tuple == NULL)
return NULL;