Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit f5f1ffe

Browse files
committed
Fix a mingw32 build issue
1 parent 7d3818f commit f5f1ffe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Support/Windows/Path.inc

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
#include "llvm/ADT/STLExtras.h"
2020
#include <fcntl.h>
2121
#include <io.h>
22-
#include <shlobj.h>
2322
#include <sys/stat.h>
2423
#include <sys/types.h>
2524

26-
// The Windows.h header must be the last one included.
25+
// These two headers must be included last, and make sure shlobj is required
26+
// after Windows.h to make sure it picks up our definition of _WIN32_WINNT
2727
#include "Windows.h"
28+
#include <shlobj.h>
2829

2930
#undef max
3031

0 commit comments

Comments
 (0)