diff options
author | Justin Luth <justin_luth@sil.org> | 2020-02-22 07:30:15 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-22 07:43:02 +0100 |
commit | 50ccb7e82b7053306721cbe220323be072306a29 (patch) | |
tree | 4289298b282feaac2a39ff63aaae29b55d8788d0 /pyuno/source/module/pyuno_runtime.cxx | |
parent | ee8914cd0bf017e2d294a6d5d4f52587c0a8aef4 (diff) |
python 3.8.2 compile: add tp_print to PyTypeObject
I couldn't find this documented on the Internet though,
as the 3.9 and 3.8.2rc documentation didn't mention it
as an added item...
I'm using Ubuntu 20.04 alpha with python3 --version
Python 3.8.2rc1
This fixes pyuno/source/module/pyuno.cxx:1689:1: error:
missing initializer for member ‘_typeobject::tp_print’
[-Werror=missing-field-initializers]
Change-Id: Idec5720050572b34628267cd94557dabf7edbf3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89247
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno/source/module/pyuno_runtime.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 823355a900da..5182f57ab201 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -126,6 +126,9 @@ static PyTypeObject RuntimeImpl_Type = , nullptr #if PY_VERSION_HEX >= 0x03080000 , nullptr // vectorcallfunc tp_vectorcall +#if PY_VERSION_HEX >= 0x03080200 + , 0 //Py_ssize_t tp_print +#endif #endif #endif }; |