From cd452f6448776ace67ebfa51e47c2d4000fe2090 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 20 Apr 2012 10:55:45 +0000 Subject: add proper import/export for shared library --- src/base/QXmppGlobal.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/base') 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 -#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 -- cgit v1.2.3