File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl MethodDef {
51
51
if flags. contains ( PInvokeAttributes :: CallConvPlatformapi ) {
52
52
"system"
53
53
} else if flags. contains ( PInvokeAttributes :: CallConvCdecl ) {
54
- "cdecl "
54
+ "C "
55
55
} else {
56
56
""
57
57
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ macro_rules! link {
32
32
#[ macro_export]
33
33
macro_rules! link {
34
34
( $library: literal $abi: literal $( $link_name: literal) ? fn $( $function: tt) * ) => (
35
- extern $abi {
35
+ extern "C" {
36
36
pub fn $( $function) * ;
37
37
}
38
38
)
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ macro_rules! link {
45
45
#[ macro_export]
46
46
macro_rules! link {
47
47
( $library: literal $abi: literal $( $link_name: literal) ? fn $( $function: tt) * ) => (
48
- extern $abi {
48
+ extern "C" {
49
49
pub fn $( $function) * ;
50
50
}
51
51
)
You can’t perform that action at this time.
0 commit comments