Add Q_DECL_EXPORT / IMPORT

This commit is contained in:
Jonathan Bagg
2017-02-28 17:19:34 -05:00
parent b04c27e47e
commit 9698a09782
2 changed files with 13 additions and 1 deletions

View File

@@ -30,6 +30,17 @@
#include <QObject>
#include <QHostAddress>
#include <QMap>
#include <QtCore/QtGlobal>
#ifndef QT_STATIC
# ifdef QT_BUILD_ZEROCONF_LIB
# define Q_ZEROCONF_EXPORT Q_DECL_EXPORT
# else
# define Q_ZEROCONF_EXPORT Q_DECL_IMPORT
# endif
#else
# define Q_ZEROCONF_EXPORT
#endif
struct QZeroConfService
{
@@ -45,7 +56,7 @@ struct QZeroConfService
class QZeroConfPrivate;
class QZeroConf : public QObject
class Q_ZEROCONF_EXPORT QZeroConf : public QObject
{
Q_OBJECT