aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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