From e507d1aff25410e1a874afc333da4269e6e93a55 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 13 Oct 2014 09:44:58 -0700 Subject: [PATCH] Don't hardcode i32 in FFI bindings --- src/doc/native-build.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/native-build.md b/src/doc/native-build.md index 60a169487ee..740a4273cc6 100644 --- a/src/doc/native-build.md +++ b/src/doc/native-build.md @@ -127,10 +127,11 @@ int foo() { return 1; } ```rust // src/main.rs +extern crate libc; #[link(name = "hello", kind = "static")] extern { - fn foo() -> i32; + fn foo() -> libc::c_int; } fn main() {