vcl/win/gdi/salnativewidgets-luna.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a5239bd4a8ceba49996df84d31400e573dd9cfa1
Author:     Michael Weghorn <[email protected]>
AuthorDate: Sun May 18 21:34:55 2025 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Mon May 19 07:33:38 2025 +0200

    win: Fix --disable-skia Windows build
    
    ... which after
    
        commit 4a4d388e17ae7490ed36f4bb0dd21fbefcdda124
        Date:   Wed May 7 01:58:16 2025 +0200
    
            simplify CompatibleDC
    
            This class is only really used by the skia case. The non-skia
            (i.e. GDI) case completely bypasses it.
            So we can remove the hierarchy and just make it into a skia focused
            class, simplifying the code structure in the process
    
    was seen failing like this:
    
        C:\Users\mwegh\development\git\libreofficecl\inc\skia/utils.hxx(34): 
fatal error C1083: Cannot open include file: 'SkRegion.h': No such file or 
directory
        make[1]: *** 
[C:/Users/mwegh/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:338: 
C:/Users/mwegh/development/git/libreoffice/workdir/CxxObject/vcl/win/gdi/salnativewidgets-luna.o]
 Error 2
        make: *** [Makefile:301: build] Error 2
    
    Change-Id: Iaa0f6d3da85467bae07d55b5dba9a4bd68cc784d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185473
    Reviewed-by: Michael Weghorn <[email protected]>
    Reviewed-by: Regina Henschel <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx 
b/vcl/win/gdi/salnativewidgets-luna.cxx
index b375a60b4e69..e85b09979639 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -31,6 +31,8 @@
 // Drawing in non-client area (general DWM-related info):
 //   
http://msdn.microsoft.com/en-us/library/windows/desktop/bb688195%28v=vs.85%29.aspx
 
+#include <config_features.h>
+
 #include <rtl/ustring.h>
 
 #include <osl/diagnose.h>
@@ -52,7 +54,9 @@
 #include <win/salinst.h>
 #include <win/scoped_gdi.hxx>
 #include <win/wingdiimpl.hxx>
+#if HAVE_FEATURE_SKIA
 #include <skia/win/gdiimpl.hxx>
+#endif
 
 #include <uxtheme.h>
 #include <vssym32.h>

Reply via email to