Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 548444 | Differences between
and this patch

Collapse All | Expand All

(-)a/llvm-3.6.0.src/tools/clang/lib/Driver/MSVCToolChain.cpp (-1 / +3 lines)
Lines 22-27 Link Here
22
#include "llvm/Support/FileSystem.h"
22
#include "llvm/Support/FileSystem.h"
23
#include "llvm/Support/Process.h"
23
#include "llvm/Support/Process.h"
24
24
25
#include <cstdio>
26
25
// Include the necessary headers to interface with the Windows registry and
27
// Include the necessary headers to interface with the Windows registry and
26
// environment.
28
// environment.
27
#if defined(LLVM_ON_WIN32)
29
#if defined(LLVM_ON_WIN32)
Lines 212-218 bool MSVCToolChain::getWindowsSDKDir(std::string &path, int &major, Link Here
212
      "SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\$VERSION",
214
      "SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\$VERSION",
213
      "InstallationFolder", path, &sdkVersion);
215
      "InstallationFolder", path, &sdkVersion);
214
  if (!sdkVersion.empty())
216
  if (!sdkVersion.empty())
215
    ::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor);
217
    std::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor);
216
  return hasSDKDir && !path.empty();
218
  return hasSDKDir && !path.empty();
217
}
219
}
218
220

Return to bug 548444