summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-09-20 14:13:58 +0300
committerTor Lillqvist <tml@collabora.com>2013-09-20 14:14:47 +0300
commitf1b2c5185762debdd4ccbdb369472f5d30950e75 (patch)
tree5add20f08d5c453d87cf6fb419733a9995f5c83c
parent54035e9408daa0b05256a12de7df626572aa34c5 (diff)
extern "C" it should be
Change-Id: If44baa59b524f2fdf9bca77e404142a569090d72
-rw-r--r--sc/source/core/tool/formulagroup.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index 317948007298..b1808e07dcd3 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -402,8 +402,8 @@ void FormulaGroupInterpreter::fillOpenCLInfo(std::vector<OpenclPlatformInfo>& rP
reinterpret_cast<__fillOpenCLInfo>(fn)(&aPlatforms[0], aPlatforms.size());
rPlatforms.swap(aPlatforms);
#else
- extern size_t getOpenCLPlatformCount(void);
- extern void fillOpenCLInfo(OpenclPlatformInfo*, size_t);
+ extern "C" size_t getOpenCLPlatformCount(void);
+ extern "C" void fillOpenCLInfo(OpenclPlatformInfo*, size_t);
size_t nPlatforms = getOpenCLPlatformCount();
if (!nPlatforms)
@@ -445,7 +445,7 @@ void FormulaGroupInterpreter::switchOpenCLDevice(const OUString& rDeviceId, bool
if(!bSuccess)
return;
#else
- extern bool switchOpenClDevice(const OUString*, bool);
+ extern "C" bool switchOpenClDevice(const OUString*, bool);
bool bSuccess = switchOpenClDevice(&rDeviceId, bAutoSelect);
if(!bSuccess)
@@ -460,7 +460,7 @@ void FormulaGroupInterpreter::switchOpenCLDevice(const OUString& rDeviceId, bool
if ( ScInterpreter::GetGlobalConfig().mbOpenCLEnabled )
{
#ifdef DISABLE_DYNLOADING
- extern sc::FormulaGroupInterpreter* createFormulaGroupOpenCLInterpreter();
+ extern "C" sc::FormulaGroupInterpreter* createFormulaGroupOpenCLInterpreter();
msInstance = createFormulaGroupOpenCLInterpreter();
#else
// Dynamically load scopencl shared object, and instantiate the opencl interpreter.
@@ -493,7 +493,7 @@ void FormulaGroupInterpreter::compileOpenCLKernels()
reinterpret_cast<__compileOpenCLKernels>(fn)(&rConfig.maOpenCLDevice);
#else
- extern void compileOpenCLKernels(const OUString*);
+ extern "C" void compileOpenCLKernels(const OUString*);
compileOpenCLKernels(&rConfig.maOpenCLDevice);
#endif