summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 22:00:06 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-14 22:00:06 (GMT)
commit38e46fc628f023750e90f727c918ab5fedc37b33 (patch)
tree1bed4433c55a63958f2ef3f3b1f52f3ccec9807d /Modules/_testcapimodule.c
parenta6474664d07504494c33e999bf0a00fe7a0c8d5f (diff)
downloadcpython-38e46fc628f023750e90f727c918ab5fedc37b33.zip
cpython-38e46fc628f023750e90f727c918ab5fedc37b33.tar.gz
cpython-38e46fc628f023750e90f727c918ab5fedc37b33.tar.bz2
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. ........
Diffstat (limited to 'Modules/_testcapimodule.c')
-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;