summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/packet/user_attribute.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-07 16:35:20 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-07 18:24:24 +0200
commitc0308304ad20cd702231572eba3dedb293bdc103 (patch)
tree0b1344e7adf4004c61008b3fe485b42b765db3c6 /openpgp-ffi/src/packet/user_attribute.rs
parent83a109af5039cb764aa9b7ffddc14bafd3d42dca (diff)
openpgp-ffi, ffi: Fix calling convention on Windows.
- Use `extern "C"` instead of `extern "system"`. The latter selects stdcall, which is only appropriate for talking to the Windows API.
Diffstat (limited to 'openpgp-ffi/src/packet/user_attribute.rs')
-rw-r--r--openpgp-ffi/src/packet/user_attribute.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/packet/user_attribute.rs b/openpgp-ffi/src/packet/user_attribute.rs
index 131c15de..c26e9cce 100644
--- a/openpgp-ffi/src/packet/user_attribute.rs
+++ b/openpgp-ffi/src/packet/user_attribute.rs
@@ -15,7 +15,7 @@ use RefRaw;
/// The returned pointer is valid until `ua` is deallocated. If
/// `value_len` is not `NULL`, the size of value is stored there.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle]
-pub extern "system" fn pgp_user_attribute_value(ua: *const Packet,
+pub extern "C" fn pgp_user_attribute_value(ua: *const Packet,
value_len: Option<&mut size_t>)
-> *const uint8_t {
if let &openpgp::Packet::UserAttribute(ref ua) = ua.ref_raw() {