On Fri, 29 Aug 2025, Pali Rohár wrote:
I saw that we are adding new WIN32_LEAN_AND_MEAN usage in mingw-w64
runtime source code and I was wondering if it is really needed.
Raymond Chen on his blog for msvc compiler wrote that it is nowadays
useless: https://devblogs.microsoft.com/oldnewthing/20091130-00/?p=15863
Has somebody tried to measure compile time or other metric of mingw-w64
with and without the WIN32_LEAN_AND_MEAN under clang or gcc?
I'm just curious.
While it probably doesn't make a huge difference in actual compile time,
these days, I still prefer keeping it where relevant; windows.h pulls in a
huge amount of headers otherwise, and I prefer having things more granular
if possible (but many headers require you to include windows.h first).
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public