From 1a79ab192054f032625bd7ec2a96f730c1a681e4 Mon Sep 17 00:00:00 2001 From: Noah Snelson Date: Thu, 4 Sep 2025 18:58:14 -0700 Subject: [PATCH] Add "C" ABI to FFI example --- src/ffi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi.md b/src/ffi.md index 2f065a4..2eb4337 100644 --- a/src/ffi.md +++ b/src/ffi.md @@ -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,