summaryrefslogtreecommitdiff
path: root/ext/io/console/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r--ext/io/console/console.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index c5d61eb39d..b4ae8925b5 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -50,11 +50,7 @@ typedef struct sgttyb conmode;
#include <winioctl.h>
typedef DWORD conmode;
-#ifdef HAVE_RB_W32_MAP_ERRNO
#define LAST_ERROR rb_w32_map_errno(GetLastError())
-#else
-#define LAST_ERROR EBADF
-#endif
#define SET_LAST_ERROR (errno = LAST_ERROR, 0)
static int