From 966b75157fe2b17e2c8d46a7351f25dda0905366 Mon Sep 17 00:00:00 2001 From: Joseph Powers Date: Sat, 7 May 2011 17:41:06 -0700 Subject: PyVarObject_HEAD_INIT() isn't defined in Python 2.5- Mac OS X is still being compiled vs 2.3 --- pyuno/source/module/pyuno_impl.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 51bc10a3df4d..ff6ca8716e69 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -30,6 +30,11 @@ #include +//Must define PyVarObject_HEAD_INIT for Python 2.5 or older +#ifndef PyVarObject_HEAD_INIT +#define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size, +#endif + #include #include -- cgit