Hacker News new | ask | show | jobs
by hoten 1084 days ago
Don't forget `WIN32_EXTRA_LEAN`! Still no idea what that does/did.

For those curious about WIN32_LEAN_AND_MEAN - it reduces compile time by not auto-including a number of windows headers: https://devblogs.microsoft.com/oldnewthing/20091130-00/?p=15...

1 comments

Do you mean VC_EXTRALEAN? Or is WIN32_EXTRA_LEAN also a thing?
First time I hear of VC_EXTRALEAN, always used WIN32_EXTRA_LEAN.
The bad news is that WIN32_EXTRA_LEAN has no effect, you have to define VC_EXTRALEAN if you want to exclude extra stuff from the MFC and VC headers.

The good news is also that it has no effect. :)

You can verify this for yourself by grepping the Visual Studio headers for VC_EXTRALEAN and WIN32_EXTRA_LEAN.

But it did in 2005?

> VC_EXTRALEAN defines WIN32_LEAN_AND_MEAN and a number of NOservice definitions, such as NOCOMM and NOSOUND.

> https://gamedev.net/forums/topic/367942-win32_lean_and_mean-...

WIN32_EXTRA_LEAN != WIN32_LEAN_AND_MEAN