diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 10:55:45 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 10:55:45 +0000 |
| commit | cd452f6448776ace67ebfa51e47c2d4000fe2090 (patch) | |
| tree | cb6d9d8e6c94c362634eda5665e71d8e1969f9b9 /src/base | |
| parent | f9cb8a696ff8676446e3dac2a7498b66e0c830a6 (diff) | |
| download | qxmpp-cd452f6448776ace67ebfa51e47c2d4000fe2090.tar.gz | |
add proper import/export for shared library
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppGlobal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/base/QXmppGlobal.h b/src/base/QXmppGlobal.h index 6ef3618c..707745a7 100644 --- a/src/base/QXmppGlobal.h +++ b/src/base/QXmppGlobal.h @@ -27,7 +27,15 @@ #include <QString> -#define QXMPP_EXPORT +#if defined(QXMPP_SHARED) +# if defined(QXMPP_BUILD) +# define QXMPP_EXPORT Q_DECL_EXPORT +# else +# define QXMPP_EXPORT Q_DECL_IMPORT +# endif +#else +# define QXMPP_EXPORT +#endif /// This macro expands a numeric value of the form 0xMMNNPP (MM = /// major, NN = minor, PP = patch) that specifies QXmpp's version |
