include/LibreOfficeKit/LibreOfficeKitGtk.h |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ed984edae683d82132af6b12e1328a8e3cd67c93
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Jul 19 09:54:43 2024 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Fri Jul 19 13:27:16 2024 +0200

    libreofficekitgtk: Add include for SAL_DLLPUBLIC_EXPORT
    
    `SAL_DLLPUBLIC_EXPORT` is defined in `include/sal/types.h`,
    so add a corresponding include in
    `include/LibreOfficeKit/LibreOfficeKitGtk.h` before using it.
    
    Without this, Qt Creator's Clang code model would'nt find it,
    resulting in errors like
    
        
.../libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx:15: 
error: In included file: unknown type name 'SAL_DLLPUBLIC_EXPORT'
    
    being shown when editing the file
    `libreofficekit/qa/gtktiledviewer/gtv-lokdocview-signal-handlers.cxx`
    in Qt Creator.
    
    Change-Id: Iedd3490be9de72b931573b305d283d80b25a4645
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170749
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h 
b/include/LibreOfficeKit/LibreOfficeKitGtk.h
index 26b1178c2667..3365fd10e47f 100644
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
@@ -17,6 +17,7 @@
 
  // Avoid "error C2375: 'foo': redefinition; different linkage" on MSVC
 #if defined LOK_DOC_VIEW_IMPLEMENTATION
+#include <sal/types.h>
 #define LOK_DOC_VIEW_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
 #else
 #define LOK_DOC_VIEW_DLLPUBLIC

Reply via email to