Closed
Description
Despite cdecl
being equivalent to C
on Windows, Rust insists that I specify C
and not cdecl
for variadic functions.
error[E0045]: variadic function must have C calling convention
--> src\um\shellapi.rs:815:5
|
815 | pub fn ShellMessageBoxA(
| _____^ starting here...
816 | | hAppInst: HINSTANCE,
817 | | hWnd: HWND,
818 | | lpcText: LPCSTR,
819 | | lpcTitle: LPCSTR,
820 | | fuStyle: UINT,
821 | | ...
822 | | ) -> c_int;
| |_______________^ ...ending here: variadics require C calling conventions
Metadata
Metadata
Assignees
Labels
No labels