diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-20 11:43:14 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-20 11:43:14 +0200 |
commit | 90bcfc8cc905b09d99064fc17a745c8ae2288c62 (patch) | |
tree | 96021cf102246589d14b09428ea8922a6e15a88f /src | |
parent | 2b367a30df6e155621c116c41cc262dd96ad1a33 (diff) | |
download | nitrokey-sys-rs-90bcfc8cc905b09d99064fc17a745c8ae2288c62.tar.gz nitrokey-sys-rs-90bcfc8cc905b09d99064fc17a745c8ae2288c62.tar.bz2 |
Remove unnecessary __uint*_t typedefs
While bindgen is able to replace the C uint types with the correct Rust
types, it still generates typedefs for __uint{8,16,32,64}_t [0]. We
don’t need these typedefs, so we add a patch to remove them.
[0] https://github.com/rust-lang/rust-bindgen/issues/1663
Diffstat (limited to 'src')
-rw-r--r-- | src/ffi.rs | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1,9 +1,5 @@ /* automatically generated by rust-bindgen */ -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __uint64_t = ::std::os::raw::c_ulong; extern "C" { #[link_name = "\u{1}NK_PWS_SLOT_COUNT"] pub static mut NK_PWS_SLOT_COUNT: u8; |