summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-03 00:35:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-03 00:35:35 +0000
commit3cfd6f9fcd7fcdea4f189f79a1f876eb3cdcbf82 (patch)
treeb07d278f2e9e86330af08e273860225f0751fb37 /ext
parent7f71df5558e136f166d57412bfec7684e3735b2b (diff)
console.c: remove old ifdef
* ext/io/console/console.c (LAST_ERROR): remove old ifdef, should use rb_w32_map_errno always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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