diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-01 13:09:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 13:09:33 (GMT) |
commit | 2ac0515027699b5694d9a6ff40f1ddaba82c74c2 (patch) | |
tree | 75a0082d9f3ec7f987ada46a85fe4acdd4311cfd /Include/methodobject.h | |
parent | 61092a99c4840f36dbde8457cb566fc3c012930f (diff) | |
download | cpython-2ac0515027699b5694d9a6ff40f1ddaba82c74c2.zip cpython-2ac0515027699b5694d9a6ff40f1ddaba82c74c2.tar.gz cpython-2ac0515027699b5694d9a6ff40f1ddaba82c74c2.tar.bz2 |
bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135)
xxlimited targets Python 3.10, not Python 3.16: fix the hexadecimal
version number used in the Py_LIMITED_API macro.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r-- | Include/methodobject.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index 7aa4e41..9ffe8e1 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -79,15 +79,15 @@ PyAPI_FUNC(PyObject *) PyCMethod_New(PyMethodDef *, PyObject *, #define METH_COEXIST 0x0040 -#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03100000 -#define METH_FASTCALL 0x0080 +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030a0000 +# define METH_FASTCALL 0x0080 #endif /* This bit is preserved for Stackless Python */ #ifdef STACKLESS -#define METH_STACKLESS 0x0100 +# define METH_STACKLESS 0x0100 #else -#define METH_STACKLESS 0x0000 +# define METH_STACKLESS 0x0000 #endif /* METH_METHOD means the function stores an |