summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-09-16 08:55:05 +0200
committerDavid Tardon <dtardon@redhat.com>2012-09-16 13:03:16 +0200
commiteb5b28c3448af4764592baf432cbeba9d91c3c4a (patch)
tree4a568e6373c0040561437986e3fe0c641b11d209 /sal
parent21fbe158f17c82c882ef91d3387f8adf15b6eb7c (diff)
export sal init and deinit functions
Linking of cppunittester (and any other executable that uses SAL_IMPLEMENT_MAIN or SAL_IMPLEMENT_MAIN_WITH_ARGS) fails otherwise. Change-Id: I778941ab2069819789f96ab04f364ea61cf4a3cb
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/salinit.cxx4
-rw-r--r--sal/osl/w32/salinit.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/salinit.cxx b/sal/osl/unx/salinit.cxx
index 0ce8d86717a7..22da0a511186 100644
--- a/sal/osl/unx/salinit.cxx
+++ b/sal/osl/unx/salinit.cxx
@@ -39,7 +39,7 @@
extern "C" {
-void sal_detail_initialize(int argc, char ** argv) {
+SAL_DLLPUBLIC_EXPORT void SAL_CALL sal_detail_initialize(int argc, char ** argv) {
#if defined MACOSX
// On Mac OS X, soffice can restart itself via exec (see restartOnMac in
// desktop/source/app/app.cxx), which leaves all file descriptors open,
@@ -69,7 +69,7 @@ void sal_detail_initialize(int argc, char ** argv) {
osl_setCommandArgs(argc, argv);
}
-void sal_detail_deinitialize() {}
+SAL_DLLPUBLIC_EXPORT void SAL_CALL sal_detail_deinitialize() {}
}
diff --git a/sal/osl/w32/salinit.cxx b/sal/osl/w32/salinit.cxx
index 7a498c35c367..520be587a026 100644
--- a/sal/osl/w32/salinit.cxx
+++ b/sal/osl/w32/salinit.cxx
@@ -58,7 +58,7 @@ extern "C" void invalidParameterHandler(
// Prototypes for initialization and deinitialization of SAL library
-void sal_detail_initialize(int argc, char ** argv)
+SAL_DLLPUBLIC_EXPORT void SAL_CALL sal_detail_initialize(int argc, char ** argv)
{
// SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
// SetDllDirectoryW(L"");
@@ -118,7 +118,7 @@ void sal_detail_initialize(int argc, char ** argv)
osl_setCommandArgs(argc, argv);
}
-void sal_detail_deinitialize()
+SAL_DLLPUBLIC_EXPORT void SAL_CALL sal_detail_deinitialize()
{
if ( SOCKET_ERROR == WSACleanup() )
{