summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-02-12 12:04:23 +0100
committerAndras Timar <andras.timar@collabora.com>2018-03-25 18:32:11 +0200
commite8f8f9ddfd2002eed680ebff8933e789fde3e9c7 (patch)
tree78969e05644d26df1d6ecf7224f2e275c907275f /sd/source
parent647da8fdbcf00eadfd37693590a0880a2d7ce3cc (diff)
Disable lok_preload_hooks when not dynamically loading.
Change-Id: I00f1e8978607f450d3ad33f4515be1fc962c0332 Reviewed-on: https://gerrit.libreoffice.org/49591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 93eef21ce1f74c848fcf0ad4f4eab7a8167a39a8)
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/app/sddll.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index 9239951476d1..0835e1dd281b 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -290,10 +290,14 @@ void SdDLL::Init()
#endif
}
+#ifndef DISABLE_DYNLOADING
+
extern "C" SAL_DLLPUBLIC_EXPORT
void lok_preload_hook()
{
SdAbstractDialogFactory::Create();
}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */