22 Jan
2024
22 Jan
'24
7:58 a.m.
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++). -- v2: include: Let _InterlockedCompareExchange128 be intrinsic for clang++. include: Let clang++ use Wine's winnt.h. https://gitlab.winehq.org/wine/wine/-/merge_requests/4884