sc/source/core/data/formulacell.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 836a190c2dd461e309041a3384f388c8351291f9
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Mon Dec 9 18:51:01 2024 +0200
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Fri Jan 9 18:49:45 2026 +0100

    Fix build on Windows with --disable-opencl
    
    Change-Id: Ie85150aca1f4896e4e1d265a38dbeb19e92e53fe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194564
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Tomaž Vajngerl <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196884
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/sc/source/core/data/formulacell.cxx 
b/sc/source/core/data/formulacell.cxx
index 296689b35fba..f19baa4274b2 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -5139,7 +5139,7 @@ bool 
ScFormulaCell::InterpretFormulaGroupOpenCL(sc::FormulaLogger::GroupScope& a
 
     int nMaxGroupLength = INT_MAX;
 
-#ifdef _WIN32
+#if defined(_WIN32) && HAVE_FEATURE_OPENCL
     // Heuristic: Certain old low-end OpenCL implementations don't
     // work for us with too large group lengths. 1000 was determined
     // empirically to be a good compromise.

Reply via email to