summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2012-08-11 13:01:41 +0000
committerPedro Giffuni <pfg@apache.org>2012-08-11 13:01:41 +0000
commit357e510eca19575a9e053d6d71f980da78436ee2 (patch)
tree40c498e0363084575cf83ff66424234d3e381b3c /pyuno
parent8324ed475144d9072acce4a8da0fef0890f5d024 (diff)
Add compatibility of older versions of Python. Reported by Pavel Janik on Mac OS X 10.6.8.
Notes
Notes: prefer: 966b75157fe2b17e2c8d46a7351f25dda0905366
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_impl.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx
index 280db0bb5978..9cb2b9e843d4 100644
--- a/pyuno/source/module/pyuno_impl.hxx
+++ b/pyuno/source/module/pyuno_impl.hxx
@@ -43,6 +43,12 @@
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/weakref.hxx>
+// Compatibility of older versions of Python
+#ifndef PyVarObject_HEAD_INIT
+#define PyVarObject_HEAD_INIT(type, size) \
+ PyObject_HEAD_INIT(type) size,
+#endif
+
namespace pyuno
{