diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index de6b4dcc844a..22bb65972d56 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -48,7 +48,9 @@ #include #include +#if HAVE_FEATURE_OPENCL #include +#endif #include using namespace ::com::sun::star::uno; @@ -304,6 +306,7 @@ OUString AboutDialog::GetVersionString() sVersion += m_aLocaleStr.replaceAll("$LOCALE", aLocaleStr); } +#if HAVE_FEATURE_OPENCL OUString aCalcMode = "Calc: "; // Calc calculation mode bool bSWInterp = officecfg::Office::Common::Misc::UseSwInterpreter::get(); bool bOpenCL = opencl::GPUEnv::isOpenCLEnabled(); @@ -314,6 +317,7 @@ OUString AboutDialog::GetVersionString() else aCalcMode += "single"; sVersion += "; " + aCalcMode; +#endif return sVersion; }