diff options
author | Mike Hommey <mh@glandium.org> | 2018-11-21 16:43:24 +0900 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2018-11-21 16:43:24 +0900 |
commit | fdb9726d42249171560e23b98d16d8f234a9a338 (patch) | |
tree | ea0086d39b74978a17009afa8f728b999ce2745a /build.rs | |
parent | 4d9a03e391a1f6626949e870e5c49e14d8944abb (diff) | |
download | rust-libc-fdb9726d42249171560e23b98d16d8f234a9a338.tar.gz |
core::ffi::c_void is available since rustc 1.30
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } } |