[Python-checkins] cpython: Issue #14203: Temporary fix for the compile failure on Windows.
stefan.krah
python-checkins at python.org
Tue Feb 3 22:27:50 CET 2015
https://hg.python.org/cpython/rev/17a8c5f8ca48
changeset: 94494:17a8c5f8ca48
user: Stefan Krah <skrah at bytereef.org>
date: Tue Feb 03 22:27:21 2015 +0100
summary:
Issue #14203: Temporary fix for the compile failure on Windows.
files:
Modules/_testcapimodule.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2519,6 +2519,7 @@
Py_RETURN_NONE;
}
+#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__GNUC__)
extern PyTypeObject _PyBytesIOBuffer_Type;
static PyObject *
@@ -2556,6 +2557,7 @@
"test_pep3118_obsolete_write_locks: failure");
return NULL;
}
+#endif
/* This tests functions that historically supported write locks. It is
wrong to call getbuffer() with view==NULL and a compliant getbufferproc
@@ -3229,7 +3231,9 @@
{"test_unicode_compare_with_ascii", (PyCFunction)test_unicode_compare_with_ascii, METH_NOARGS},
{"test_capsule", (PyCFunction)test_capsule, METH_NOARGS},
{"test_from_contiguous", (PyCFunction)test_from_contiguous, METH_NOARGS},
+#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__GNUC__)
{"test_pep3118_obsolete_write_locks", (PyCFunction)test_pep3118_obsolete_write_locks, METH_NOARGS},
+#endif
{"getbuffer_with_null_view", getbuffer_with_null_view, METH_O},
{"getargs_tuple", getargs_tuple, METH_VARARGS},
{"getargs_keywords", (PyCFunction)getargs_keywords,
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list