summaryrefslogtreecommitdiff
path: root/src/compositor/global
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-01-29 12:58:45 +0100
committerThiago Macieira <thiago.macieira@intel.com>2014-08-19 03:10:25 +0200
commit48e976599ddd8e68e77230e6bcd4f5f45619954c (patch)
treee86baddf8d5a64d855966b42fe89ea2e1737666d /src/compositor/global
parent487c8e47c0fbf1b199e466e182e7ada62cb5e51a (diff)
downloadqtwayland-48e976599ddd8e68e77230e6bcd4f5f45619954c.tar.gz
Compile with protected visibility
Change-Id: I64fc922122e407487083c86d2a9617beea32507b Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/compositor/global')
-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 4998f836..45ddc159 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