From acdf946e633692a61dc59513852938ba4f5a4142 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Wed, 4 Sep 2013 14:42:09 +0200 Subject: 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 --- src/corelib/plugin/qpluginloader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/plugin') 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 -- cgit v1.2.3