This commit is contained in:
Roberto Raggi
2009-03-30 14:54:57 +02:00
parent 9d187706aa
commit 2a82d9272a

View File

@@ -361,10 +361,19 @@ QList<HeaderPath> WinCEToolChain::systemHeaderPaths()
//TODO fix this code //TODO fix this code
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment(); ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
addToEnvironment(env); addToEnvironment(env);
QList<HeaderPath> headerPaths;
#ifdef QTCREATOR_WITH_MSVC_INCLUDES #ifdef QTCREATOR_WITH_MSVC_INCLUDES
return env.value("INCLUDE").split(QLatin1Char(';')); const QStringList includes = env.value("INCLUDE").split(QLatin1Char(';'));
foreach (const QString &path, includes) {
const HeaderPath headerPath(path, HeaderPath::GlobalHeaderPath);
headerPaths.append(headerPath);
}
#endif #endif
return QList<HeaderPath>();
return headerPaths;
} }
void WinCEToolChain::addToEnvironment(ProjectExplorer::Environment &env) void WinCEToolChain::addToEnvironment(ProjectExplorer::Environment &env)