logoalt Hacker News

green7eatoday at 7:48 AM1 replyview on HN

I remember using it all the time for the Windows headers because they pollutes the compilation unit like you wouldn't believe — the rule was to only include them in c/cpp files.


Replies

maccardtoday at 9:00 AM

We put

    #define WIN32_LEAN_AND_MEAN 1
    #include <windows.h>
In precompiled headers to solve that particular problem.
show 1 reply