diff --git a/src/Base/PyObjectBase.cpp b/src/Base/PyObjectBase.cpp index 5f8108c4ea..6af4326050 100644 --- a/src/Base/PyObjectBase.cpp +++ b/src/Base/PyObjectBase.cpp @@ -105,7 +105,7 @@ static PyTypeObject PyBaseProxyType = { sizeof(PyBaseProxy), /*tp_basicsize*/ 0, /*tp_itemsize*/ PyBaseProxy_dealloc, /*tp_dealloc*/ -#if PY_VERSION_HEX >= 0x03090000 +#if PY_VERSION_HEX >= 0x03080000 0, /*tp_vectorcall_offset*/ #else nullptr, /*tp_print*/ @@ -168,7 +168,7 @@ PyTypeObject PyObjectBase::Type = { 0, /*tp_itemsize*/ /* --- methods ---------------------------------------------- */ PyDestructor, /*tp_dealloc*/ -#if PY_VERSION_HEX >= 0x03090000 +#if PY_VERSION_HEX >= 0x03080000 0, /*tp_vectorcall_offset*/ #else nullptr, /*tp_print*/ diff --git a/src/Tools/generateTemplates/templateClassPyExport.py b/src/Tools/generateTemplates/templateClassPyExport.py index 75a1eb2204..f027c61247 100644 --- a/src/Tools/generateTemplates/templateClassPyExport.py +++ b/src/Tools/generateTemplates/templateClassPyExport.py @@ -285,7 +285,7 @@ PyTypeObject @self.export.Name@::Type = { 0, /*tp_itemsize*/ /* methods */ PyDestructor, /*tp_dealloc*/ -#if PY_VERSION_HEX >= 0x03090000 +#if PY_VERSION_HEX >= 0x03080000 0, /*tp_vectorcall_offset*/ #else nullptr, /*tp_print*/