mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
committed by
Bram Moolenaar
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
|
||||
|
Reference in New Issue
Block a user