summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-05-13 10:54:12 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-05-13 10:54:12 +0200
commit25c309102d81d62a1db439aae4fa7d45a155df6b (patch)
treea1f106e751c32c8ee6553ae9327fbd1edf0b59ec /ffi-macros
parente363549906b457bb829d51593c6da7b0767abc8f (diff)
openpgp-ffi: Use the C ABI, not the system ABI
Reported-by: Thomas Muenz
Diffstat (limited to 'ffi-macros')
-rw-r--r--ffi-macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs
index 3620549d..e28c0c85 100644
--- a/ffi-macros/src/lib.rs
+++ b/ffi-macros/src/lib.rs
@@ -927,7 +927,7 @@ fn derive_iterator(span: proc_macro2::Span, prefix: &str, name: &str,
quote! {
/// Gets the next item from the iterator.
- #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
+ #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
fn #ident #generics (this: *mut #wrapper #generics)
-> Option<::std::ptr::NonNull<#item_type>> {
use ::RefMutRaw;