diff options
author | Zhi-Qiang Lei <zhiqiang.lei@gmail.com> | 2022-12-23 18:18:42 +0800 |
---|---|---|
committer | Zhi-Qiang Lei <zhiqiang.lei@gmail.com> | 2023-01-21 16:44:08 +0800 |
commit | 950827b936c38b1c1a722b6ddc4c9add4407b017 (patch) | |
tree | f2640e633dfdc1b5615a7d6fd03aa1b4bd6b6bcc /build.rs | |
parent | ad3ce341e3bad465a6672517fa952910f0a5a64f (diff) | |
download | rust-libc-950827b936c38b1c1a722b6ddc4c9add4407b017.tar.gz |
Add struct ctl_info for Apple
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -83,6 +83,11 @@ fn main() { println!("cargo:rustc-cfg=libc_non_exhaustive"); } + // Rust >= 1.47 supports long array: + if rustc_minor_ver >= 47 || rustc_dep_of_std { + println!("cargo:rustc-cfg=libc_long_array"); + } + if rustc_minor_ver >= 51 || rustc_dep_of_std { println!("cargo:rustc-cfg=libc_ptr_addr_of"); } |