summaryrefslogtreecommitdiff
path: root/pyuno/source
diff options
context:
space:
mode:
authorDavid Ostrovsky <David.Ostrovsky@gmx.de>2012-05-27 22:50:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-06-14 11:40:23 +0200
commite16ac6937245977b7900c48a408be2c589f6a0a6 (patch)
treedd4b2adeab3d99b072f69529af25e6aabef188cf /pyuno/source
parent951ed65898208a7597c813141ed160716708d348 (diff)
gbuild migration: pyuno module
Change-Id: I7f923a5622214f7540a789bcdd93bf6fd1d166db
Diffstat (limited to 'pyuno/source')
-rw-r--r--pyuno/source/module/pyuno_dlopenwrapper.c4
-rw-r--r--pyuno/source/module/pyuno_module.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_dlopenwrapper.c b/pyuno/source/module/pyuno_dlopenwrapper.c
index 3bdc912f95bd..cb17c51aec9c 100644
--- a/pyuno/source/module/pyuno_dlopenwrapper.c
+++ b/pyuno/source/module/pyuno_dlopenwrapper.c
@@ -84,14 +84,14 @@ static void * load(void * address, char const * symbol) {
#if PY_MAJOR_VERSION >= 3
-PyObject * PyInit_pyuno(void) {
+SAL_DLLPUBLIC_EXPORT PyObject * PyInit_pyuno(void) {
return
((PyObject * (*)(void)) load((void *) &PyInit_pyuno, "PyInit_pyuno"))();
}
#else
-void initpyuno(void) {
+SAL_DLLPUBLIC_EXPORT void initpyuno(void) {
((void (*)(void)) load((void *) &initpyuno, "initpyuno"))();
}
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 432a61ef988d..26d1932bed0c 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -833,7 +833,7 @@ struct PyMethodDef PyUNOModule_methods [] =
}
-extern "C" PY_DLLEXPORT
+extern "C"
#if PY_MAJOR_VERSION >= 3
PyObject* PyInit_pyuno()
{