diff options
author | Scott Talbert <swt@techie.net> | 2022-01-26 12:37:17 -0500 |
---|---|---|
committer | Scott Talbert <swt@techie.net> | 2022-01-26 12:38:43 -0500 |
commit | e7c498a39919cc44c56cb5ff835279477592bda3 (patch) | |
tree | 93d2c78a5e4051ad090a7c78a577604a9a8b2260 | |
parent | 1d053a98aea09147de90b022e2162e5baa59a7a6 (diff) | |
download | pycurl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 }; |