[MinGW] Fix MinGW32 build failure and almost all MinGW32/MinGW64 warnings #9268
Motivation / Problem
MinGW32 fails to build OpenTTD, and many warnings are generated by MinGW32 and MinGW64.
First commit solves
Second commit is just a cleanup (less
Next 3 commits are MinGW32 specific.
Fourth commit solves
Fifth commit solves
Following commits are for MinGW32 and MinGW64
Seventh commit solves
Eighth commit solves
Ninth commit solves
And last commit solves a build failure introduced recently.
There's a remaining warning for MinGW32 release build, displayed at link time
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.
rubidium42 left a comment
I've got no clue about the DLL code, though it does not look obviously wrong.
Regarding the last warning, might there be something wrong with the definition of LOGFONT so that is really big with MinGW?