diff --git a/release/build.js b/release/build.js index 103ceb6..41b7307 100644 --- a/release/build.js +++ b/release/build.js @@ -247,15 +247,6 @@ async function main(args) { let ldextra = ""; if (opts.os === "windows") { libs = [...libs, "ws2_32", "advapi32", "shell32", "userenv", "ole32"]; - - if (opts.arch === "i686") { - // on i686, the mingw import library `libole32.a` - // is missing symbols for `CoIncrementMTAUsage`. - // note: we can't add "-Wl,--enable-stdcall-fixup" because it's - // not whitelisted as of Go 1.14.3 - so, we'll have to live - // with the warnings - ldextra = "c:/Windows/System32/ole32.dll"; - } } else if (opts.os === "linux") { libs = [...libs, "dl"]; } diff --git a/src/windows/runtime.rs b/src/windows/runtime.rs index 22a725c..22362e1 100644 --- a/src/windows/runtime.rs +++ b/src/windows/runtime.rs @@ -21,7 +21,7 @@ pub enum Error { } #[link(name = "ole32")] -extern "C" { +extern "stdcall" { fn CoInitializeEx(pvReserved: *mut c_void, dwCoInit: u32) -> HRESULT; fn CoUninitialize(); }