From 98f8e3a94a1b0346311dbd5eb1d0d6206eaa13e7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 15 Apr 2020 11:10:26 +0100 Subject: ofz#21701 fix DISABLE_DYNLOADING case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8b63c032e8421d3001bb318ddbdc8cffcfa5212b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92253 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sfx2/source/appl/getbasctlfunction.cxx | 2 ++ sfx2/source/appl/getbasctlfunction.hxx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sfx2') diff --git a/sfx2/source/appl/getbasctlfunction.cxx b/sfx2/source/appl/getbasctlfunction.cxx index 4f272919174a..fd7f4873017e 100644 --- a/sfx2/source/appl/getbasctlfunction.cxx +++ b/sfx2/source/appl/getbasctlfunction.cxx @@ -30,6 +30,7 @@ #include "getbasctlfunction.hxx" #if HAVE_FEATURE_SCRIPTING +#ifndef DISABLE_DYNLOADING extern "C" { static void thisModule() {} } @@ -57,6 +58,7 @@ oslGenericFunction sfx2::getBasctlFunction(char const* name) return pSymbol; } +#endif #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/sfx2/source/appl/getbasctlfunction.hxx b/sfx2/source/appl/getbasctlfunction.hxx index 98f9db47a929..5fa4bc557094 100644 --- a/sfx2/source/appl/getbasctlfunction.hxx +++ b/sfx2/source/appl/getbasctlfunction.hxx @@ -24,6 +24,7 @@ #include +#ifndef DISABLE_DYNLOADING #if HAVE_FEATURE_SCRIPTING namespace sfx2 @@ -31,6 +32,7 @@ namespace sfx2 oslGenericFunction getBasctlFunction(char const* name); } +#endif #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit