Skip to content

Commit

Permalink
Attempt #2 for windows building
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Apr 9, 2019
1 parent 751dff0 commit 654fce9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/win-exception-handler/src/exception_handling.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::ffi::c_void;
use std::ptr::NonNull;
use wasmer_runtime_core::vm::{Ctx, Func};

type Trampoline = unsafe extern "C" fn(*mut Ctx, *const Func, *const u64, *mut u64) -> c_void;
type Trampoline = unsafe extern "C" fn(*mut Ctx, NonNull<Func>, *const u64, *mut u64) -> c_void;
type CallProtectedResult = Result<(), CallProtectedData>;

#[repr(C)]
Expand All @@ -16,7 +17,7 @@ extern "C" {
pub fn __call_protected(
trampoline: Trampoline,
ctx: *mut Ctx,
func: *const Func,
func: NonNull<Func>,
param_vec: *const u64,
return_vec: *mut u64,
out_result: *mut CallProtectedData,
Expand All @@ -26,7 +27,7 @@ extern "C" {
pub fn _call_protected(
trampoline: Trampoline,
ctx: *mut Ctx,
func: *const Func,
func: NonNull<Func>,
param_vec: *const u64,
return_vec: *mut u64,
) -> CallProtectedResult {
Expand Down

0 comments on commit 654fce9

Please sign in to comment.