Should it have one then?
Yes. MSVC defaults to stdcall for external functions, and gcc does not. We use -mabi-ms on x86_64, but i386 will still default to cdecl.
I suppose we could change that, but I'm not sure we want to. In the past we've always just added stdcall decorations to functions even though they're not present on Windows.
(Frankly my impression is that sysv is simply a better ABI on x86_64, but it seems that mingw-w64 gcc isn't actually capable of emitting it.)