0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.5168: cannot build with Python 3.11

Problem:    Cannot build with Python 3.11.
Solution:   Adjust define for _PyObject_TypeCheck. (Zdenek Dohnal,
            closes #10627)
This commit is contained in:
Zdenek Dohnal 2022-06-27 13:59:00 +01:00 committed by Bram Moolenaar
parent 1ae8c262df
commit fee511c1d3
2 changed files with 8 additions and 1 deletions

View File

@ -692,8 +692,13 @@ py3__PyObject_TypeCheck(PyObject *ob, PyTypeObject *type)
{
return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type);
}
# if PY_VERSION_HEX >= 0x030b00b3
# undef PyObject_TypeCheck
# define PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
# else
# define _PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
# endif
# endif
# ifdef MSWIN
/*

View File

@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5168,
/**/
5167,
/**/