diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-05-07 17:41:06 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-07 17:41:06 -0700 |
commit | 966b75157fe2b17e2c8d46a7351f25dda0905366 (patch) | |
tree | 7d98d59e4720534a91c6aa22d8941157c77b8936 /pyuno | |
parent | a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe (diff) |
PyVarObject_HEAD_INIT() isn't defined in Python 2.5-
Mac OS X is still being compiled vs 2.3
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 51bc10a3df4d..ff6ca8716e69 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -30,6 +30,11 @@ #include <Python.h> +//Must define PyVarObject_HEAD_INIT for Python 2.5 or older +#ifndef PyVarObject_HEAD_INIT +#define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size, +#endif + #include <pyuno/pyuno.hxx> #include <boost/unordered_map.hpp> |