From d4f63f5e767d23675240e9dd6d95fc9496ad9df5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 27 Nov 2014 14:16:36 +0200 Subject: Fix OpenCL-less build harder Change-Id: I1627f534505c735455c50f9b4f6e4d1c698ab9d2 --- sc/source/core/tool/formulagroup.cxx | 3 ++- sc/source/core/tool/formulaopt.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sc/source/core/tool') diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx index 705029b89f13..328e3c3b0083 100644 --- a/sc/source/core/tool/formulagroup.cxx +++ b/sc/source/core/tool/formulagroup.cxx @@ -523,10 +523,11 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic() if ( !msInstance ) { +#if HAVE_FEATURE_OPENCL const ScCalcConfig& rConfig = ScInterpreter::GetGlobalConfig(); if (officecfg::Office::Common::Misc::UseOpenCL::get()) switchOpenCLDevice(rConfig.maOpenCLDevice, rConfig.mbOpenCLAutoSelect, false); - +#endif if ( !msInstance ) // software fallback { SAL_INFO("sc.formulagroup", "Create S/W interpreter"); diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx index b0f76c86b048..60378df03122 100644 --- a/sc/source/core/tool/formulaopt.cxx +++ b/sc/source/core/tool/formulaopt.cxx @@ -649,10 +649,11 @@ void ScFormulaCfg::Commit() break; } } +#if HAVE_FEATURE_OPENCL if(bSetOpenCL) sc::FormulaGroupInterpreter::switchOpenCLDevice( GetCalcConfig().maOpenCLDevice, GetCalcConfig().mbOpenCLAutoSelect); - +#endif PutProperties(aNames, aValues); } -- cgit v1.2.3