vcl/source/app/salplug.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 9550587874617e83bb187305836d94b54d5ffd1f
Author: Andras Timar <[email protected]>
AuthorDate: Tue Feb 14 11:51:50 2023 +0100
Commit: Andras Timar <[email protected]>
CommitDate: Tue Feb 14 12:01:22 2023 +0000
fix error: macro UNIX_DESKTOP_DETECT is not used [-Werror=unused-macros]
... when HAVE_FEATURE_UI is 0
Change-Id: I353189a9cfd9eeb3d96008c440ff403d3634f14c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147002
Tested-by: Andras Timar <[email protected]>
Reviewed-by: Andras Timar <[email protected]>
diff --git a/vcl/source/app/salplug.cxx b/vcl/source/app/salplug.cxx
index 378187dbfedc..e51375b94ae5 100644
--- a/vcl/source/app/salplug.cxx
+++ b/vcl/source/app/salplug.cxx
@@ -40,12 +40,14 @@
#include <svdata.hxx>
#include <vcl/svapp.hxx>
+#if HAVE_FEATURE_UI
#if USING_X11
#define UNIX_DESKTOP_DETECT 1
#include <unx/desktops.hxx>
#else
#define UNIX_DESKTOP_DETECT 0
#endif
+#endif
#if defined(DISABLE_DYNLOADING) || !HAVE_FEATURE_UI
#define STATIC_SAL_INSTANCE 1