Author: pfg Date: Sat Aug 11 14:01:41 2012 New Revision: 1371957 URL: http://svn.apache.org/viewvc?rev=1371957&view=rev Log: Add compatibility of older versions of Python. Reported by Pavel Janik on Mac OS X 10.6.8.
Modified: incubator/ooo/trunk/main/pyuno/source/module/pyuno_impl.hxx Modified: incubator/ooo/trunk/main/pyuno/source/module/pyuno_impl.hxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/pyuno/source/module/pyuno_impl.hxx?rev=1371957&r1=1371956&r2=1371957&view=diff ============================================================================== --- incubator/ooo/trunk/main/pyuno/source/module/pyuno_impl.hxx (original) +++ incubator/ooo/trunk/main/pyuno/source/module/pyuno_impl.hxx Sat Aug 11 14:01:41 2012 @@ -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 {