Windows/Path.inc: Move <shlobj.h> after "Windows.h" for some API available.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Feb 2014 11:50:22 +0000 (11:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Feb 2014 11:50:22 +0000 (11:50 +0000)
commit04d39d7a2ddb5ebaf35f1ce3acf11dd1730fc548
treeb532abcc23aae1e03f8d4750bf48121fc18fce67
parent04817e49bce9b7f46aa29aea96239ded3839660f
Windows/Path.inc: Move <shlobj.h> after "Windows.h" for some API available.

  I found that swapping the order of some header files helped fix a
  build issue that we're seeing on mingw32. Without the swap, windows.h
  was being included before _WIN32_WINNT was being defined and the
  CreateHardLinkW function was #ifdef'd out.

  It looks like the header is mainly used to get the SHGetFolderPathW
  function, so I don't think that there'll be much fallout from the
  switch.

Suggested by Alex Crichton. Thanks!

llvm-svn: 201230
llvm/lib/Support/Windows/Path.inc