https://bugs.winehq.org/show_bug.cgi?id=51919
Bug ID: 51919 Summary: New sal.h macros break libstdc++ includes in wineg++ Product: Wine Version: 6.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs@winehq.org Reporter: mail@robbertvanderhelm.nl Distribution: ---
https://github.com/wine-mirror/wine/commit/dfdf56fbe47f8ff50ebe533e6d73f2de6... added a bunch of new (empty) macros. These macros include definitions for __in and __out. These names are used often for function arguments in libstdc++, whose headers now no longer compile under Wine 6.20's wineg++ after including windows.h. A minimal example of the problem is this:
#include <windows.h> #include <algorithm>
int main(int argc, char *argv[]) { return 0; }
Compiling the above with `wineg++ --std=c++20 <filename>.cpp` with GCC 11.1 now results in 977 lines of compiler errors.