Skip to content

Commit

Permalink
Merge pull request #1600 from RalfJung/no-stdcall
Browse files Browse the repository at this point in the history
dont use stdcall on x86_64 where it is not a valid ABI
  • Loading branch information
ehuss authored Sep 3, 2024
2 parents df36291 + 470855c commit 9e35d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ called from other programming languages like C:
extern "C" fn new_i32() -> i32 { 0 }

// Declares a function with the "stdcall" ABI
# #[cfg(target_arch = "x86_64")]
# #[cfg(any(windows, target_arch = "x86"))]
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 }
```

Expand Down

0 comments on commit 9e35d2d

Please sign in to comment.