From fdb9726d42249171560e23b98d16d8f234a9a338 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 21 Nov 2018 16:43:24 +0900 Subject: [PATCH] core::ffi::c_void is available since rustc 1.30 --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index aa56ea05..1852ed27 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,7 @@ fn main() { * If `core::ffi::c_void` exists, libc can just re-export it. Otherwise, it * must define an incompatible type to retain backwards-compatibility. */ - if rustc_minor_version().expect("Failed to get rustc version") >= 31 { + if rustc_minor_version().expect("Failed to get rustc version") >= 30 { println!("cargo:rustc-cfg=core_cvoid"); } }