diff options
author | Pedro Giffuni <pfg@apache.org> | 2012-08-13 17:27:13 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2012-08-13 17:27:13 +0000 |
commit | 7e1023e9803c7ad9d5555e068ee59b010f173277 (patch) | |
tree | 8ce878070540242b1cac12a1acfdcf1736785e06 /pyuno/inc | |
parent | dacf002094e50faf89754026bd8f374450df8de1 (diff) |
Move old Python compatibility to a better place.
Notes
Notes:
ignore: obsolete
Diffstat (limited to 'pyuno/inc')
-rw-r--r-- | pyuno/inc/pyuno/pyuno.hxx | 6 |
1 files changed, 6 insertions, 0 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> |