summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_callable.cxx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2020-02-22 07:30:15 +0300
committerAron Budea <aron.budea@collabora.com>2020-05-24 00:38:32 +0200
commit619d16d73eeacba1a76d8d586ac031f948db3ae1 (patch)
treeb97bfab3c54ae9de0fd556b4cc430cf6315f4b3d /pyuno/source/module/pyuno_callable.cxx
parent19ab4ebce6750792274c9b6e9bbf07b987f6037f (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> (cherry picked from commit 50ccb7e82b7053306721cbe220323be072306a29)
Diffstat (limited to 'pyuno/source/module/pyuno_callable.cxx')
-rw-r--r--pyuno/source/module/pyuno_callable.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx
index 656d1c84cb0e..61c5a15155c6 100644
--- a/pyuno/source/module/pyuno_callable.cxx
+++ b/pyuno/source/module/pyuno_callable.cxx
@@ -231,6 +231,9 @@ static PyTypeObject PyUNO_callable_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
};