summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2015-02-03 21:27:21 (GMT)
committerStefan Krah <skrah@bytereef.org>2015-02-03 21:27:21 (GMT)
commita7559c04e09980a3ae468a996609805dfe413ca4 (patch)
tree536d97fe3861148d764ba76d0c7cb44277f77dea /Modules
parent650c1e818d7bbb5d51501051fca773b3b8ea6bf3 (diff)
downloadcpython-a7559c04e09980a3ae468a996609805dfe413ca4.zip
cpython-a7559c04e09980a3ae468a996609805dfe413ca4.tar.gz
cpython-a7559c04e09980a3ae468a996609805dfe413ca4.tar.bz2
Issue #14203: Temporary fix for the compile failure on Windows.
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 a4930fb..4658260 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2519,6 +2519,7 @@ test_from_contiguous(PyObject* self, PyObject *noargs)
Py_RETURN_NONE;
}
+#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__GNUC__)
extern PyTypeObject _PyBytesIOBuffer_Type;
static PyObject *
@@ -2556,6 +2557,7 @@ error:
"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 @@ static PyMethodDef TestMethods[] = {
{"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,