diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-09-10 17:21:04 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 15:23:15 +0200 |
commit | 26b6cce44bc4fb81b09420bdaf56fc6036d1eece (patch) | |
tree | d4cffbc95c68d5d395fd615a7ba162f7300eacbe /src | |
parent | d4170585f0786c097ce37aad73d254aafd35618b (diff) |
remove usage of QT_MAKEDLL in favor of the new QT_STATIC macro
Change-Id: I411cab0d92a8cad6b4f3676afe5cee050c4b789b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/zlib/zlib.h | 6 | ||||
-rw-r--r-- | src/gui/kernel/qgenericpluginfactory.cpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/3rdparty/zlib/zlib.h b/src/3rdparty/zlib/zlib.h index 4069724c9f..5229707f52 100644 --- a/src/3rdparty/zlib/zlib.h +++ b/src/3rdparty/zlib/zlib.h @@ -33,13 +33,13 @@ #include "zconf.h" -#include "qconfig.h" +#include <qglobal.h> #if defined(QT_VISIBILITY_AVAILABLE) # undef ZEXTERN # define ZEXTERN __attribute__((visibility("default"))) -#elif defined(QT_MAKEDLL) +#else # undef ZEXTERN -# define ZEXTERN __declspec(dllexport) +# define ZEXTERN Q_DECL_EXPORT #endif #ifdef __cplusplus diff --git a/src/gui/kernel/qgenericpluginfactory.cpp b/src/gui/kernel/qgenericpluginfactory.cpp index b407823a75..3d294b34a2 100644 --- a/src/gui/kernel/qgenericpluginfactory.cpp +++ b/src/gui/kernel/qgenericpluginfactory.cpp @@ -48,7 +48,7 @@ QT_BEGIN_NAMESPACE -#if !defined(Q_OS_WIN32) || defined(QT_MAKEDLL) +#if !defined(Q_OS_WIN32) || defined(QT_SHARED) #ifndef QT_NO_LIBRARY Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, @@ -56,7 +56,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, QLatin1String("/generic"), Qt::CaseInsensitive)) #endif //QT_NO_LIBRARY -#endif //QT_MAKEDLL +#endif //QT_SHARED /*! \class QGenericPluginFactory @@ -78,7 +78,7 @@ QObject *QGenericPluginFactory::create(const QString& key, const QString &specif { const QString driver = key.toLower(); -#if !defined(Q_OS_WIN32) || defined(QT_MAKEDLL) +#if !defined(Q_OS_WIN32) || defined(QT_SHARED) #ifndef QT_NO_LIBRARY if (QObject *object = qLoadPlugin1<QObject, QGenericPlugin>(loader(), driver, specification)) return object; @@ -96,7 +96,7 @@ QStringList QGenericPluginFactory::keys() { QStringList list; -#if !defined(Q_OS_WIN32) || defined(QT_MAKEDLL) +#if !defined(Q_OS_WIN32) || defined(QT_SHARED) #ifndef QT_NO_LIBRARY typedef QMultiMap<int, QString> PluginKeyMap; typedef PluginKeyMap::const_iterator PluginKeyMapConstIterator; @@ -107,7 +107,7 @@ QStringList QGenericPluginFactory::keys() if (!list.contains(it.value())) list += it.value(); #endif //QT_NO_LIBRARY -#endif //QT_MAKEDLL +#endif return list; } |