Merge pull request #501 from peeley/patch-1

Add missing "C" ABI to FFI example code
pull/502/head
Eric Huss 1 month ago committed by GitHub
commit f17a018b99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -90,7 +90,7 @@ The `extern` block can be extended to cover the entire snappy API:
use libc::{c_int, size_t};
#[link(name = "snappy")]
unsafe extern {
unsafe extern "C" {
fn snappy_compress(input: *const u8,
input_length: size_t,
compressed: *mut u8,

Loading…
Cancel
Save