Skip to content

Commit 470855c

Browse files
committed
stdcall is only a valid ABI on x86, except on windows
1 parent df36291 commit 470855c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ called from other programming languages like C:
195195
extern "C" fn new_i32() -> i32 { 0 }
196196

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

0 commit comments

Comments
 (0)