summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Windows/Path.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index a431fa0480..8329d271b3 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -19,12 +19,13 @@
#include "llvm/ADT/STLExtras.h"
#include <fcntl.h>
#include <io.h>
-#include <shlobj.h>
#include <sys/stat.h>
#include <sys/types.h>
-// 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 <shlobj.h>
#undef max