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:
parent
1ae8c262df
commit
fee511c1d3
@ -692,7 +692,12 @@ py3__PyObject_TypeCheck(PyObject *ob, PyTypeObject *type)
|
||||
{
|
||||
return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type);
|
||||
}
|
||||
# define _PyObject_TypeCheck(o,t) py3__PyObject_TypeCheck(o,t)
|
||||
# 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
|
||||
|
@ -735,6 +735,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
5168,
|
||||
/**/
|
||||
5167,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user