From eaf0c052a7218951385f9f4d5da8b669d92102ca Mon Sep 17 00:00:00 2001 From: Leonardo Basilio Date: Mon, 18 May 2020 17:18:47 -0300 Subject: QXmppGlobal: Fix QXMPP_EXPORT define for static linking (#299) --- src/base/QXmppGlobal.h.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/base') diff --git a/src/base/QXmppGlobal.h.in b/src/base/QXmppGlobal.h.in index a4860d06..29570dd7 100644 --- a/src/base/QXmppGlobal.h.in +++ b/src/base/QXmppGlobal.h.in @@ -29,10 +29,16 @@ #include -#if defined(QXMPP_BUILD) -# define QXMPP_EXPORT Q_DECL_EXPORT +#define QXMPP_BUILD_SHARED @QXMPP_BUILD_SHARED@ + +#if QXMPP_BUILD_SHARED +# if defined(QXMPP_BUILD) +# define QXMPP_EXPORT Q_DECL_EXPORT +# else +# define QXMPP_EXPORT Q_DECL_IMPORT +# endif #else -# define QXMPP_EXPORT Q_DECL_IMPORT +# define QXMPP_EXPORT #endif #define QXMPP_AUTOTEST_EXPORT -- cgit v1.2.3