summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-04-25 09:08:21 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-04-25 09:09:00 +0100
commit7f01a960995b728489ab359fc082609c75216f95 (patch)
tree43d73feaf145fce84c41cca929c79c5d9fd8c95d
parentbc4c2098a66bbcf4f3d265dd8e0a154062e4337d (diff)
fix "Wrap opencl-only functions in appropriate ifdef."
062871853cc420f35ddfbc2534f34c94f1b4c982 (loplugin:unreffun fix) caused: 'undefined reference to `sc::FormulaGroupInterpreter::msInstance' when building with --disable-opencl. (It appears I didn't check whether my build had fully completed before pushing.) Change-Id: I948205867985c7722662d673e95d5639bc9d9bcc
-rw-r--r--sc/source/core/tool/formulagroup.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index 56eae0d62749..d4e37103b829 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -533,9 +533,11 @@ typedef bool (*__switchOpenClDevice)(const OUString*, bool, bool);
typedef void (*__getOpenCLDeviceInfo)(size_t*, size_t*);
#endif
+#endif
FormulaGroupInterpreter *FormulaGroupInterpreter::msInstance = NULL;
+#if HAVE_FEATURE_OPENCL
#ifndef DISABLE_DYNLOADING
osl::Module* getOpenCLModule()