diff options
author | Mackenzie Clark <mackenzie.a.z.c@gmail.com> | 2018-12-20 15:28:12 -0800 |
---|---|---|
committer | Mackenzie Clark <mackenzie.a.z.c@gmail.com> | 2018-12-20 15:28:12 -0800 |
commit | 0581f926ffdebfd399f1a89d742e3b2e2e4f3a3d (patch) | |
tree | 4d6a62785618989e581b3e3e79b84038bebea2d1 | |
parent | e92ed6d0ae724e8b347f87d0183c26841e931290 (diff) | |
download | rust-libc-0581f926ffdebfd399f1a89d742e3b2e2e4f3a3d.tar.gz |
add exception for msvc
-rw-r--r-- | libc-test/build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index ffab452301..2615826f82 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -11,6 +11,7 @@ fn main() { let x86_64 = target.contains("x86_64"); let x32 = target.ends_with("gnux32"); let windows = target.contains("windows"); + let msvc = target.contains("windows-msvc"); let mingw = target.contains("windows-gnu"); let linux = target.contains("unknown-linux"); let android = target.contains("android"); @@ -712,6 +713,9 @@ fn main() { s if ios && s.starts_with("RTV_") => true, s if ios && s.starts_with("DLT_") => true, + // these constants do not exist in msvc, but they are still useful + "STDIN_FILENO" | "STDOUT_FILENO" | "STDERR_FILENO" if msvc => true, + _ => false, } }); |