summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyuno/inc/pyuno/pyuno.hxx6
-rw-r--r--pyuno/source/module/pyuno_impl.hxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx
index 2a58dcb9640b..03c8a93c7705 100644
--- a/pyuno/inc/pyuno/pyuno.hxx
+++ b/pyuno/inc/pyuno/pyuno.hxx
@@ -37,6 +37,12 @@
#pragma warning(pop)
#endif
#endif // #ifdef Py_PYTHON_H
+// Compatibility for older system Python (2.6 and previous)
+#ifndef PyVarObject_HEAD_INIT
+#define PyVarObject_HEAD_INIT(type, size) \
+ PyObject_HEAD_INIT(type) size,
+#endif
+
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx
index 9cb2b9e843d4..280db0bb5978 100644
--- a/pyuno/source/module/pyuno_impl.hxx
+++ b/pyuno/source/module/pyuno_impl.hxx
@@ -43,12 +43,6 @@
#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
{