D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22727 - ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows builds
Summary: ImportC: support for __stdcall and __fastcall is necessary for 32-bit Windows...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 major
Assignee: No Owner
URL:
Keywords: ImportC, pull
Depends on:
Blocks:
 
Reported: 2022-02-02 15:15 UTC by Max Samukha
Modified: 2022-02-06 09:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2022-02-02 15:15:56 UTC
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 Dlang Bot 2022-02-06 06:43:31 UTC
@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 Walter Bright 2022-02-06 06:45:15 UTC
Not going to support __fastcall. It should be #define'd to nothing by the user.
Comment 3 Dlang Bot 2022-02-06 09:53:39 UTC
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