diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-08-19 16:42:13 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-08-19 16:42:13 +0200 |
commit | 7555cfeafb28fccd93aac9441cc18f985036cfc7 (patch) | |
tree | a60434f3a8c09aba43cd0c10ab17778338884842 | |
parent | 63637840a92f237b21369f2b8cb2c202d33613fc (diff) |
ffi-macros: Handle type c_void.
- Fixes #325.
-rw-r--r-- | ffi-macros/src/rust2c.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs index 56ef9761..f801fd0b 100644 --- a/ffi-macros/src/rust2c.rs +++ b/ffi-macros/src/rust2c.rs @@ -21,6 +21,7 @@ fn ident2c(ident: &syn::Ident) -> (String, bool) { return ("pgp_user_id_binding_iter_t".into(), true), // Types from the libc crate. + "c_void" => return ("void".into(), false), "c_char" => return ("char".into(), false), "c_int" => return ("int".into(), false), "c_uint" => return ("uint".into(), false), |