Clang++ fails to compile Wine's include/winnt.h. This is caused by Wine defining some function inline, while the compiler provides an intrinsic version. This is fine with a C compilation, but fails in a C++ compilation.
This serie fixes the compilation by better detecting the various cases and giving favor to intrinsic when defined (on clang/clang++).