diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-27 14:02:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-27 14:03:18 +0200 |
commit | 89c4700e6ab6ba105d9084e5dc70325896eba419 (patch) | |
tree | 99bcb4c09116eed9b2a185df62f2bb1441444f8b /sc/inc | |
parent | 287049d5e074d328abfb4363f60809364935d20f (diff) |
Fix OpenCL-less build
Change-Id: I8e049a6df5946344110b38887301d186991a475d
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/formulagroup.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx index 19debeeec669..5bca2d5634d5 100644 --- a/sc/inc/formulagroup.hxx +++ b/sc/inc/formulagroup.hxx @@ -10,12 +10,16 @@ #ifndef INCLUDED_SC_INC_FORMULAGROUP_HXX #define INCLUDED_SC_INC_FORMULAGROUP_HXX +#include <config_features.h> + #include "address.hxx" #include "types.hxx" #include "stlalgorithm.hxx" #include <formula/opcode.hxx> +#if HAVE_FEATURE_OPENCL #include <opencl/platforminfo.hxx> +#endif #include <svl/sharedstringpool.hxx> #include <set> @@ -122,11 +126,12 @@ class SC_DLLPUBLIC FormulaGroupInterpreter public: static FormulaGroupInterpreter *getStatic(); +#if HAVE_FEATURE_OPENCL static void fillOpenCLInfo(std::vector<OpenCLPlatformInfo>& rPlatforms); static bool switchOpenCLDevice(const OUString& rDeviceId, bool bAutoSelect, bool bForceEvaluation = false); static void enableOpenCL(bool bEnable, bool bEnableCompletely = false, const std::set<OpCodeEnum>& rSubsetToEnable = std::set<OpCodeEnum>()); static void getOpenCLDeviceInfo(sal_Int32& rDeviceId, sal_Int32& rPlatformId); - +#endif virtual ScMatrixRef inverseMatrix(const ScMatrix& rMat) = 0; virtual CompiledFormula* createCompiledFormula(ScDocument& rDoc, const ScAddress& rTopPos, |