Skip to content

Commit 975eb6b

Browse files
committed
Revert "instead backfill constants on msvc"
This reverts commit 0dd7f2d.
1 parent 0dd7f2d commit 975eb6b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libc-test/build.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ fn main() {
5555
cfg.define("in_port_t", Some("uint16_t"));
5656
}
5757

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-
6558
cfg.header("errno.h")
6659
.header("fcntl.h")
6760
.header("limits.h")
@@ -720,6 +713,9 @@ fn main() {
720713
s if ios && s.starts_with("RTV_") => true,
721714
s if ios && s.starts_with("DLT_") => true,
722715

716+
// these constants do not exist in msvc, but they are still useful
717+
"STDIN_FILENO" | "STDOUT_FILENO" | "STDERR_FILENO" if msvc => true,
718+
723719
_ => false,
724720
}
725721
});

0 commit comments

Comments
 (0)