Skip to content

Commit 172ccfe

Browse files
authored
[Support] [Windows] Stop redefining _WIN32_IE (#102307)
This was added in 181fd8c, where the shlobj.h header was taken into use. The shlobj.h header does have some APIs conditionally visible based on the _WIN32_IE define, but none of the calls added in that commit seem to need any specific version. fd6cb64 and 6b129bd further bumped the version it is set to, while the latter also added a FIXME to check whether it still is needed. It doesn't seem to be needed currently; the code currently builds fine without this define, both with mingw-w64 and MSVC. Additionally, to show that the value of _WIN32_IE doesn't seem to be relevant to our builds these days - if the current define is changed to hardcode _WIN32_IE to an ancient value like 0x0400, our code still builds fine, both with mingw-w64 and MSVC. Therefore, overriding this define no longer seem to be relevant.
1 parent 8ccd420 commit 172ccfe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/include/llvm/Support/Windows/WindowsSupport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323

2424
// mingw-w64 tends to define it as 0x0502 in its headers.
2525
#undef _WIN32_WINNT
26-
#undef _WIN32_IE
2726

2827
// Require at least Windows 7 API.
2928
#define _WIN32_WINNT 0x0601
30-
#define _WIN32_IE 0x0800 // MinGW at it again. FIXME: verify if still needed.
3129
#define WIN32_LEAN_AND_MEAN
3230
#ifndef NOMINMAX
3331
#define NOMINMAX

0 commit comments

Comments
 (0)