Bug 22727 – ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows builds

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-02-02T15:15:56Z
Last change time
2022-02-06T09:53:39Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Max Samukha

Comments

Comment #0 by maxsamukha — 2022-02-02T15:15:56Z
One may get away with defining __fastcall as empty and warning the user not to call the functions directly. __stdcall is obviously necessary because most Windows APIs use that.
Comment #1 by dlang-bot — 2022-02-06T06:43:31Z
@WalterBright created dlang/dmd pull request #13614 "fix Issue 22727 ImportC: add __stdcall Windows calling convention" fixing this issue: - fix Issue 22727 - ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows builds https://github.com/dlang/dmd/pull/13614
Comment #2 by bugzilla — 2022-02-06T06:45:15Z
Not going to support __fastcall. It should be #define'd to nothing by the user.
Comment #3 by dlang-bot — 2022-02-06T09:53:39Z
dlang/dmd pull request #13614 "fix Issue 22727 ImportC: add __stdcall Windows calling convention" was merged into master: - 0193db3d11a9c218c4c00cb9532a572365d5688b by Walter Bright: fix Issue 22727 - ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows builds https://github.com/dlang/dmd/pull/13614