diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index a431fa04806..8329d271b39 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -19,12 +19,13 @@ #include "llvm/ADT/STLExtras.h" #include #include -#include #include #include -// The Windows.h header must be the last one included. +// These two headers must be included last, and make sure shlobj is required +// after Windows.h to make sure it picks up our definition of _WIN32_WINNT #include "Windows.h" +#include #undef max