summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2023-02-14 11:51:50 +0100
committerAndras Timar <andras.timar@collabora.com>2023-02-14 20:00:22 +0000
commiteca098746604b6a6032cce2aa20394fca782123c (patch)
tree5219262bafdc358d839425ce82db196dda2daf8b /vcl
parent0f5218d04b17c256dd04c99b1c2ed1d9e685856f (diff)
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/+/146980 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salplug.cxx2
1 files changed, 2 insertions, 0 deletions
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