Commit ec9c3747 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED no #define inside macro authorize by MSVC

parent 084d2e2a
......@@ -117,22 +117,26 @@ void ExtensionManager::autoload(ExtensionManager::ExtensionType type) {
}
}
QString osLibraryPath = "";
QString osLibraryPathSeparator = "";
#ifdef WIN32
osLibraryPath = "PATH";
osLibraryPathSeparator = ";"
#else
osLibraryPath = "LD_LIBRARY_PATH";
osLibraryPathSeparator = ":";
#endif
CAMITK_BASIC_ERROR(tr("Extension Manager Opening Error:")
+ tr("AutoLoad plugin failed after ") + QString::number(tryNr) + tr(" tries for the following extension(s):\n - ")
+ errorStrings.join("\n - ")
+ tr("\nList of library paths:\n - ")
+ Application::instance()->libraryPaths().join("\n - ")
+ tr("\nList of path:\n - ")
#ifdef WIN32
+ QString(qgetenv("PATH")).split(";").join("\n - ")
#else
+ QString(qgetenv("LD_LIBRARY_PATH")).split(":").join("\n - ")
#endif
+ QString(qgetenv(osLibraryPath.toStdString().c_str())).split(osLibraryPathSeparator.toStdString().c_str()).join("\n - ")
+ "\n")
}
//-- load user extensions
QSettings& settings = Application::getSettings();
settings.beginGroup ( "UserExtensions" );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment