samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header
Do What The F*ck You Want To Public License
1.03k stars 99 forks source link

Use lower case filename at #include for MinGW #59

Closed sandman42292 closed 2 years ago

sandman42292 commented 3 years ago

Windows is case insensitive so "Windows.h" and "windows.h" are both OK, but MinGW on Linux is case sensitive. This PR replaces "Windows.h", "ShlObj.h" and "ShObjIdl.h" with lower case versions. I checked MinGW can compile replaced version.

sandman42292 commented 2 years ago

@samhocevar Please take a look

hdclark commented 2 years ago

I can confirm this is necessary on case-sensitive filesystems.

samhocevar commented 2 years ago

Merged! Many thanks, and sorry for the delay.