diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index 97ea6a7b394d8d68b23279a095a316ad78bd7593..e961f63db0bf0dc381f87749db5235feb5b30100 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -361,10 +361,19 @@ QList<HeaderPath> WinCEToolChain::systemHeaderPaths() //TODO fix this code ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment(); addToEnvironment(env); + + QList<HeaderPath> headerPaths; + #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 - return QList<HeaderPath>(); + + return headerPaths; } void WinCEToolChain::addToEnvironment(ProjectExplorer::Environment &env)