summaryrefslogtreecommitdiffstats
path: root/src/compositor/global/qwaylandexport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/global/qwaylandexport.h')
-rw-r--r--src/compositor/global/qwaylandexport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor/global/qwaylandexport.h b/src/compositor/global/qwaylandexport.h
index eed5a3b91..2812d433d 100644
--- a/src/compositor/global/qwaylandexport.h
+++ b/src/compositor/global/qwaylandexport.h
@@ -46,8 +46,10 @@
QT_BEGIN_NAMESPACE
#if !defined(Q_COMPOSITOR_EXPORT)
-# if defined(QT_SHARED)
+# if defined(QT_SHARED) && defined(QT_BUILD_COMPOSITOR_LIB)
# define Q_COMPOSITOR_EXPORT Q_DECL_EXPORT
+# elif defined(QT_SHARED)
+# define Q_COMPOSITOR_EXPORT Q_DECL_IMPORT
# else
# define Q_COMPOSITOR_EXPORT
# endif