diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor/global/qwaylandexport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor/global/qwaylandexport.h b/src/compositor/global/qwaylandexport.h index 4998f836f..45ddc159d 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 |