summaryrefslogtreecommitdiff
path: root/pyuno/inc/pyuno/pyuno.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/inc/pyuno/pyuno.hxx')
-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
{