Skip to content

Winelibs: use the MS x64 ABI for exported bridge functions - #77

Merged
ethindp merged 1 commit into
ethindp:masterfrom
ndarilek:winelib-fixes
Jul 13, 2026
Merged

ethindp merged 1 commit into
ethindp:masterfrom
ndarilek:winelib-fixes

Conversation

@ndarilek

Copy link
Copy Markdown
Contributor

Disclosure: created with the help of Claude Code. I myself am not familiar with how the win32 calling conventions work, but I've eyeballed the code and it doesn't appear to do anything nefarious, though I don't know if it should be gated only on x86_64 or if it'd make sense on aarch64 platforms too.

My goal was to get various game accessibility mods running in Proton, communicating with Orca. With this patch in place, and using the installer I'm building, I've successfully used this DLL with both Hades and Disco Elysium. Both now speak natively through Orca but didn't before.

@ethindp

ethindp commented Jul 12, 2026

Copy link
Copy Markdown
Owner

@ndarilek According to the GCC manual ms_abi is an x86-only attribute. Looking at the AArch64/ARM attribute sections (SECs. 6.4.2.1, 6.4.2.4) there appears to be no equivalent.

@ndarilek

Copy link
Copy Markdown
Contributor Author

Got it. My assumption is that this is probably fine since it's likely running in the context of an x86_64 game, but let me know if it's not.

@ethindp

ethindp commented Jul 12, 2026

Copy link
Copy Markdown
Owner

I mean it is, and your preprocessor definitions do eliminate the macro on non-x86 targets anyway. And Prism does not (officially) support 32-bit. Could probably update it to handle 32-bit if you really wanted to.

@ndarilek

Copy link
Copy Markdown
Contributor Author

Got it, so sounds like this is OK to merge since 32-bit support isn't official anyway?

No rush on it--I'm using a vendored build ATM--just want to make sure we're unblocked.

Thanks!

@ethindp

ethindp commented Jul 13, 2026

Copy link
Copy Markdown
Owner

This isn't blocked by anything, I'm just making changes on the v0-17-2 branch at the moment and trying to get CI to work. I am mostly done with those and once I'm happy with those changes I'll merge them into master and then merge this PR.

@ethindp
ethindp merged commit fffc75f into ethindp:master Jul 13, 2026
66 checks passed
@ndarilek
ndarilek deleted the winelib-fixes branch September 27, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants