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.
https://bugs.winehq.org/show_bug.cgi?id=51919
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |1c9b843ecf821d3caf43668c43b | |f0280c793b25d Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- It should be fixed by 1c9b843ecf821d3caf43668c43bf0280c793b25d.
https://bugs.winehq.org/show_bug.cgi?id=51919
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.21.