summaryrefslogtreecommitdiffstats
path: root/pyuno/inc
diff options
context:
space:
mode:
authorAndreas Becker <atayoohoo@googlemail.com>2011-05-07 20:35:03 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-05-07 20:35:03 +0100
commita09ce46818fd4d5e08b3af9a478501cd8ef5b4fe (patch)
tree187c9164d436201442794dee227627e2b9173124 /pyuno/inc
parentfix mangled open tag in documentation (diff)
downloadcore-a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe.tar.gz
core-a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe.zip
Port PyUno to support Python 3
Diffstat (limited to 'pyuno/inc')
-rw-r--r--pyuno/inc/pyuno/pyuno.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx
index 3e46b2c026ab..e1bac60d96be 100644
--- a/pyuno/inc/pyuno/pyuno.hxx
+++ b/pyuno/inc/pyuno/pyuno.hxx
@@ -45,8 +45,12 @@
preconditions: python has been initialized before and
the global interpreter lock is held
*/
-extern "C" PY_DLLEXPORT void SAL_CALL initpyuno();
-
+extern "C" PY_DLLEXPORT
+#if PY_MAJOR_VERSION >= 3
+ PyObject* SAL_CALL PyInit_pyuno();
+#else
+ void SAL_CALL initpyuno();
+#endif
namespace pyuno
{