We’re getting some errors regarding UpdateLayeredWindow even though we don’t use it in the project. I suspect it’s another missing include somewhere upstream that’s resolved in windows.h so it’ll take me time to figure out which file(s) in MWEdit need(s) the header that defines it.
So far, here are the files in the Windows API that we’ve discovered have missing includes:
winnt.h is missing tchar.hwinuser.h is missing windef.hWill figure out UpdateLayeredWindow just give me a bit. We’re definitely getting closer, though. UpdateLayeredWindow has two versions: a global version and one in the CWnd class.
I suspect winuser.h needs to go before afxwin.h but I need to take some time to study the logs some more.
Also, I disabled warnings for system headers when compiling under MSVC. No changes should be needed for GCC but I’ll double check when I get the opportunity. -Weffc++ could be interesting to experiment with but we’ll get there.
With regards to MSVC, there are some useless warnings we may want to disable as they clutter up the logs. One such warning is it telling us a specific function was inlined.
Once I get GCC builds enabled, there may be additional tweaks we’ll want to make on that front as well
