aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-04-20 10:55:45 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2012-04-20 10:55:45 +0000
commitcd452f6448776ace67ebfa51e47c2d4000fe2090 (patch)
treecb6d9d8e6c94c362634eda5665e71d8e1969f9b9 /src
parentf9cb8a696ff8676446e3dac2a7498b66e0c830a6 (diff)
downloadqxmpp-cd452f6448776ace67ebfa51e47c2d4000fe2090.tar.gz
add proper import/export for shared library
Diffstat (limited to 'src')
-rw-r--r--src/base/QXmppGlobal.h10
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