We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd7f2d commit 975eb6bCopy full SHA for 975eb6b
libc-test/build.rs
@@ -55,13 +55,6 @@ fn main() {
55
cfg.define("in_port_t", Some("uint16_t"));
56
}
57
58
- // these constants do not exist in msvc, but they are still useful
59
- if msvc {
60
- cfg.define("STDIN_FILENO", Some("0"));
61
- cfg.define("STDOUT_FILENO", Some("1"));
62
- cfg.define("STDERR_FILENO", Some("2"));
63
- }
64
-
65
cfg.header("errno.h")
66
.header("fcntl.h")
67
.header("limits.h")
@@ -720,6 +713,9 @@ fn main() {
720
713
s if ios && s.starts_with("RTV_") => true,
721
714
s if ios && s.starts_with("DLT_") => true,
722
715
716
+ // these constants do not exist in msvc, but they are still useful
717
+ "STDIN_FILENO" | "STDOUT_FILENO" | "STDERR_FILENO" if msvc => true,
718
+
723
719
_ => false,
724
725
});
0 commit comments