[cfe-dev] Can we make libcxx headers more modular for faster compilation?
Jonathan Sauer
jonathan.sauer at gmx.de
Wed Oct 2 23:10:18 PDT 2013
Hello,
> support.h includes windows.h on win32 platform.
> Does libstdc++ also include windows.h. I think this single include may be enough to explain the difference.
I just looked into libc++, and it seems to include windows.h without first defining
WIN32_LEAN_AND_MEAN. From <http://support.microsoft.com/kb/166474>:
| WIN32_LEAN_AND_MEAN: Windows Headers use this symbol to exclude rarely-used header files
Maybe that's a way to speed things up a bit, at least on Windows.
HTH,
Jonathan
More information about the cfe-dev
mailing list