Skip to content

Commit f17a018

Browse files
authored
Merge pull request #501 from peeley/patch-1
Add missing "C" ABI to FFI example code
2 parents 57ed447 + 1a79ab1 commit f17a018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The `extern` block can be extended to cover the entire snappy API:
9090
use libc::{c_int, size_t};
9191
9292
#[link(name = "snappy")]
93-
unsafe extern {
93+
unsafe extern "C" {
9494
fn snappy_compress(input: *const u8,
9595
input_length: size_t,
9696
compressed: *mut u8,

0 commit comments

Comments
 (0)