[Libreoffice-commits] core.git: sfx2/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 13 23:04:54 UTC 2020


 sfx2/source/appl/getbasctlfunction.cxx |    5 +++++
 sfx2/source/appl/getbasctlfunction.hxx |    5 +++++
 2 files changed, 10 insertions(+)

New commits:
commit 6b6359abb073b4eaf7cf0783e7d783e034ccadee
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Apr 14 01:25:20 2020 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Apr 14 01:04:22 2020 +0200

    Fix build without HAVE_FEATURE_SCRIPTING
    
    Change-Id: Ie4154042296c9a239bf9a2bc5f3ab1d7ee59c148
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92131
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/sfx2/source/appl/getbasctlfunction.cxx b/sfx2/source/appl/getbasctlfunction.cxx
index 93c79df57177..e682ae80836c 100644
--- a/sfx2/source/appl/getbasctlfunction.cxx
+++ b/sfx2/source/appl/getbasctlfunction.cxx
@@ -19,6 +19,7 @@
 
 #include <sal/config.h>
 
+#include <config_features.h>
 #include <config_options.h>
 #include <osl/module.h>
 #include <osl/module.hxx>
@@ -27,6 +28,8 @@
 
 #include "getbasctlfunction.hxx"
 
+#if HAVE_FEATURE_SCRIPTING
+
 extern "C" { static void thisModule() {} }
 
 oslGenericFunction sfx2::getBasctlFunction(char const* name)
@@ -55,4 +58,6 @@ oslGenericFunction sfx2::getBasctlFunction(char const* name)
     return pSymbol;
 }
 
+#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 26918309f6b0..98f9db47a929 100644
--- a/sfx2/source/appl/getbasctlfunction.hxx
+++ b/sfx2/source/appl/getbasctlfunction.hxx
@@ -20,12 +20,17 @@
 #pragma once
 
 #include <sal/config.h>
+#include <config_features.h>
 
 #include <osl/module.h>
 
+#if HAVE_FEATURE_SCRIPTING
+
 namespace sfx2
 {
 oslGenericFunction getBasctlFunction(char const* name);
 }
 
+#endif
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */


More information about the Libreoffice-commits mailing list