Kaydet (Commit) 7e1023e9 authored tarafından Pedro Giffuni's avatar Pedro Giffuni

Move old Python compatibility to a better place.

üst dacf0020
......@@ -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>
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment