diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2013-09-04 14:42:09 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 09:48:22 +0200 |
commit | acdf946e633692a61dc59513852938ba4f5a4142 (patch) | |
tree | 6569c2f9c0f1ff039a56d77da9b3b152163c104d /src/corelib/plugin | |
parent | 9fc2c729b4932504ff6344b6547c08b1b24753a0 (diff) |
qpluginloader: fix static build (on iOS)
Since the function locatePlugin is unused when
building Qt statically, the build fails on
iOS. This patch will ensure that we only define it
for shared builds.
Change-Id: Idf3c3246d3cac94a3c001cc261f326e9a396aa31
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r-- | src/corelib/plugin/qpluginloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp index 46844acb01..ded4f6bfa2 100644 --- a/src/corelib/plugin/qpluginloader.cpp +++ b/src/corelib/plugin/qpluginloader.cpp @@ -278,6 +278,7 @@ bool QPluginLoader::isLoaded() const return d && d->pHnd && d->instance; } +#if defined(QT_SHARED) static QString locatePlugin(const QString& fileName) { QStringList prefixes = QLibraryPrivate::prefixes_sys(); @@ -309,6 +310,7 @@ static QString locatePlugin(const QString& fileName) qDebug() << fileName << "not found"; return QString(); } +#endif /*! \property QPluginLoader::fileName |