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 0581f92 commit 0dd7f2dCopy full SHA for 0dd7f2d
libc-test/build.rs
@@ -55,6 +55,13 @@ 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")
@@ -713,9 +720,6 @@ fn main() {
713
720
s if ios && s.starts_with("RTV_") => true,
714
721
s if ios && s.starts_with("DLT_") => true,
715
722
716
- // these constants do not exist in msvc, but they are still useful
717
- "STDIN_FILENO" | "STDOUT_FILENO" | "STDERR_FILENO" if msvc => true,
718
-
719
723
_ => false,
724
725
});
0 commit comments