summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Talbert <swt@techie.net>2022-01-26 12:37:17 -0500
committerScott Talbert <swt@techie.net>2022-01-26 12:38:43 -0500
commite7c498a39919cc44c56cb5ff835279477592bda3 (patch)
tree93d2c78a5e4051ad090a7c78a577604a9a8b2260
parent1d053a98aea09147de90b022e2162e5baa59a7a6 (diff)
downloadpycurl-e7c498a39919cc44c56cb5ff835279477592bda3.tar.gz
Fix building with Python 3.7
tp_vectorcall was added in Python 3.8 so we need to guard it.
-rw-r--r--src/easy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/easy.c b/src/easy.c
index 8bbace3..0a37991 100644
--- a/src/easy.c
+++ b/src/easy.c
@@ -82,8 +82,10 @@ PYCURL_INTERNAL PyTypeObject CurlSlist_Type = {
0, /* tp_del */
0, /* tp_version_tag */
0, /* tp_finalize */
+#if PY_VERSION_HEX >= 0x03080000
0, /* tp_vectorcall */
#endif
+#endif
};
@@ -169,8 +171,10 @@ PYCURL_INTERNAL PyTypeObject CurlHttppost_Type = {
0, /* tp_del */
0, /* tp_version_tag */
0, /* tp_finalize */
+#if PY_VERSION_HEX >= 0x03080000
0, /* tp_vectorcall */
#endif
+#endif
};