-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefinition error in windows.foundation.h #22160
Comments
The colliding definitions are:
and
because This breakage was introduced by the change in |
I have asked about this issue in the relevant upstream merge request https://gitlab.winehq.org/wine/wine/-/merge_requests/6594 |
I don't think this is a bug in Wine. Native headers have both |
|
It's in windows.foundation.idl |
it seems slightly different here, no?
|
In both the latest winsdk 10.0.22621.0 and the 4-year-old winsdk 10.0.19041.0, Frankly I don't quite understand how the different instantiations of However it is possible that we can ignore this difference here. Practically speaking, it doesn't matter as long as the generated definitions are actually correct... ...But it looks like the definition of struct IReference<boolean > : IReference_impl<boolean > it should become struct IReference<bool> : IReference_impl<ABI::Windows::Foundation::Internal::AggregateType<bool, boolean>> WinRT has a native boolean type which, according to https://learn.microsoft.com/en-us/windows/win32/winrt/base-data-types is supposed to be mapped to I would argue |
|
Avoids duplicate definition as described in msys2/MINGW-packages#22160
Avoids duplicate definition as described in msys2/MINGW-packages#22160
Congrats! This issue breaks both Firefox and Chromium. Click here to see the compiler error while cross-compiling gecko
|
I think that you can try patching WIDL. The quick, dirty and improper fix would be to tamper with the tokenizer so it treats |
|
Would it be a proper workaround to remove the |
Description / Steps to reproduce the issue
Got redefinition error when compiling qt6-webengine:
Expected behavior
Compiles without error.
Actual behavior
Compile error.
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: