Skip to content

Commit

Permalink
Make all rustler_sys functions extern "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Aug 5, 2024
1 parent 6a8def2 commit 2954362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<'a> ApiBuilder for WinForwardersApiBuilder<'a> {
)
.unwrap();
writeln!(self.0, "#[inline]").unwrap();
writeln!(self.0, "pub unsafe fn {}({})", name, args).unwrap();
writeln!(self.0, "pub unsafe extern \"C\" fn {}({})", name, args).unwrap();
write_ret(self.0, ret);
writeln!(self.0, "{{").unwrap();
writeln!(
Expand Down

0 comments on commit 2954362

Please sign in to comment.