File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ macro_rules! impl_api {
53
53
[ $offset: expr; $fname: ident ( $( $arg: ident: $t: ty) ,* $( , ) ?) $( -> $ret: ty) ?] => {
54
54
#[ allow( non_snake_case) ]
55
55
pub unsafe fn $fname<' py>( & self , py: Python <' py>, $( $arg : $t) , * ) $( -> $ret) * {
56
- let fptr = self . get( py, $offset) as * const extern fn ( $( $arg : $t) , * ) $( -> $ret) * ;
56
+ let fptr = self . get( py, $offset) as * const extern "C" fn ( $( $arg : $t) , * ) $( -> $ret) * ;
57
57
( * fptr) ( $( $arg) , * )
58
58
}
59
59
} ;
@@ -69,7 +69,7 @@ macro_rules! impl_api {
69
69
API_VERSION_2_0 ,
70
70
* API_VERSION . get( py) . expect( "API_VERSION is initialized" ) ,
71
71
) ;
72
- let fptr = self . get( py, $offset) as * const extern fn ( $( $arg: $t) , * ) $( -> $ret) * ;
72
+ let fptr = self . get( py, $offset) as * const extern "C" fn ( $( $arg: $t) , * ) $( -> $ret) * ;
73
73
( * fptr) ( $( $arg) , * )
74
74
}
75
75
@@ -84,7 +84,7 @@ macro_rules! impl_api {
84
84
API_VERSION_2_0 ,
85
85
* API_VERSION . get( py) . expect( "API_VERSION is initialized" ) ,
86
86
) ;
87
- let fptr = self . get( py, $offset) as * const extern fn ( $( $arg: $t) , * ) $( -> $ret) * ;
87
+ let fptr = self . get( py, $offset) as * const extern "C" fn ( $( $arg: $t) , * ) $( -> $ret) * ;
88
88
( * fptr) ( $( $arg) , * )
89
89
}
90
90
You can’t perform that action at this time.
0 commit comments