From 975eb6b5c7a78d82ed8b8f06b9b30a3b1a9177ff Mon Sep 17 00:00:00 2001
From: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
Date: Thu, 20 Dec 2018 15:39:42 -0800
Subject: [PATCH] Revert "instead backfill constants on msvc"

This reverts commit 0dd7f2d153cf7b744bdf3e49af67cfe780b2e97d.
---
 libc-test/build.rs | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/libc-test/build.rs b/libc-test/build.rs
index ec0d1e0d..2615826f 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -55,13 +55,6 @@ fn main() {
         cfg.define("in_port_t", Some("uint16_t"));
     }
 
-    // these constants do not exist in msvc, but they are still useful
-    if msvc {
-        cfg.define("STDIN_FILENO", Some("0"));
-        cfg.define("STDOUT_FILENO", Some("1"));
-        cfg.define("STDERR_FILENO", Some("2"));
-    }
-
     cfg.header("errno.h")
         .header("fcntl.h")
         .header("limits.h")
@@ -720,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,
         }
     });
-- 
GitLab