diff options
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppGlobal.h.in | 12 |
1 files changed, 9 insertions, 3 deletions
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 <QString> -#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 |
