diff options
author | Andrzej Janik <[email protected]> | 2021-04-09 21:34:41 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-04-09 21:34:41 +0200 |
commit | 9dcfb45aa2e8e970712e7207798c46236c9cf884 (patch) | |
tree | df6711567c59de93db585beb03d10587aa0782e7 /zluda_dump | |
parent | 94af72f46b9e90ae0f22e8fbfa2df63a7de31afd (diff) | |
download | ZLUDA-9dcfb45aa2e8e970712e7207798c46236c9cf884.tar.gz ZLUDA-9dcfb45aa2e8e970712e7207798c46236c9cf884.zip |
Make dumper 32-bit compatible
Diffstat (limited to 'zluda_dump')
-rw-r--r-- | zluda_dump/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs index 8c3518b..c6b1322 100644 --- a/zluda_dump/src/lib.rs +++ b/zluda_dump/src/lib.rs @@ -27,7 +27,7 @@ mod os; macro_rules! extern_redirect { (pub fn $fn_name:ident ( $($arg_id:ident: $arg_type:ty),* $(,)? ) -> $ret_type:ty ;) => { #[no_mangle] - pub fn $fn_name ( $( $arg_id : $arg_type),* ) -> $ret_type { + pub extern "stdcall" fn $fn_name ( $( $arg_id : $arg_type),* ) -> $ret_type { unsafe { $crate::init_libcuda_handle() }; let name = std::ffi::CString::new(stringify!($fn_name)).unwrap(); let fn_ptr = unsafe { crate::os::get_proc_address($crate::LIBCUDA_HANDLE, &name) }; @@ -46,7 +46,7 @@ macro_rules! extern_redirect_with { $receiver:path ; ) => { #[no_mangle] - pub fn $fn_name ( $( $arg_id : $arg_type),* ) -> $ret_type { + pub extern "stdcall" fn $fn_name ( $( $arg_id : $arg_type),* ) -> $ret_type { unsafe { $crate::init_libcuda_handle() }; let continuation = |$( $arg_id : $arg_type),* | { let name = std::ffi::CString::new(stringify!($fn_name)).unwrap(); |