diff options
author | David Ostrovsky <David.Ostrovsky@gmx.de> | 2012-05-27 22:50:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-14 11:40:23 +0200 |
commit | e16ac6937245977b7900c48a408be2c589f6a0a6 (patch) | |
tree | dd4b2adeab3d99b072f69529af25e6aabef188cf /pyuno/inc | |
parent | 951ed65898208a7597c813141ed160716708d348 (diff) |
gbuild migration: pyuno module
Change-Id: I7f923a5622214f7540a789bcdd93bf6fd1d166db
Diffstat (limited to 'pyuno/inc')
-rw-r--r-- | pyuno/inc/pyuno/pyuno.hxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx index e62563e80afc..066fc93a4095 100644 --- a/pyuno/inc/pyuno/pyuno.hxx +++ b/pyuno/inc/pyuno/pyuno.hxx @@ -27,10 +27,10 @@ to do the necessary conversions. */ -#ifdef WIN32 -#define PY_DLLEXPORT __declspec(dllexport) +#if defined LO_DLLIMPLEMENTATION_PYUNO +#define LO_DLLPUBLIC_PYUNO SAL_DLLPUBLIC_EXPORT #else -#define PY_DLLEXPORT +#define LO_DLLPUBLIC_PYUNO SAL_DLLPUBLIC_IMPORT #endif /** function called by the python runtime to initialize the @@ -39,7 +39,8 @@ preconditions: python has been initialized before and the global interpreter lock is held */ -extern "C" PY_DLLEXPORT + +extern "C" LO_DLLPUBLIC_PYUNO #if PY_MAJOR_VERSION >= 3 PyObject* SAL_CALL PyInit_pyuno(); #else @@ -136,7 +137,7 @@ enum ConversionMode { ACCEPT_UNO_ANY, REJECT_UNO_ANY }; make sure to fulfill all preconditions mentioned for the specific methods. */ -class PY_DLLEXPORT Runtime +class LO_DLLPUBLIC_PYUNO Runtime { RuntimeImpl *impl; public: @@ -235,7 +236,7 @@ public: e.g. when you would leave them away, dtors of potential pyrefs may be called after the thread has detached again. */ -class PY_DLLEXPORT PyThreadAttach +class LO_DLLPUBLIC_PYUNO PyThreadAttach { PyThreadState *tstate; PyThreadAttach ( const PyThreadAttach & ); // not implemented @@ -262,7 +263,7 @@ public: @see PyThreadAttach */ -class PY_DLLEXPORT PyThreadDetach +class LO_DLLPUBLIC_PYUNO PyThreadDetach { PyThreadState *tstate; PyThreadDetach ( const PyThreadDetach & ); // not implemented |