I once tried to compare output of `cpp -include windows.h` with and without WIN32_LEAN_AND_MEAN .
If I remember correctly, output without `-DWIN32_LEAN_AND_MEAN` contained about 100K lines of code, while output with `-DWIN32_LEAN_AND_MEAN` contained about 67K lines of code. - Kirill Makurin ________________________________ From: Pali Rohár <[email protected]> Sent: Friday, August 29, 2025 11:10 PM To: Kirill Makurin <[email protected]>; Martin Storsjö <[email protected]>; LIU Hao <[email protected]>; [email protected] <[email protected]> Subject: Is WIN32_LEAN_AND_MEAN needed in mingw-w64 runtime files? 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. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
