[前][次][番号順一覧][スレッド一覧]

ruby-changes:38338

From: nobu <ko1@a...>
Date: Sun, 3 May 2015 09:36:06 +0900 (JST)
Subject: [ruby-changes:38338] nobu:r50419 (trunk): console.c: remove old ifdef

nobu	2015-05-03 09:35:35 +0900 (Sun, 03 May 2015)

  New Revision: 50419

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50419

  Log:
    console.c: remove old ifdef
    
    * ext/io/console/console.c (LAST_ERROR): remove old ifdef, should
      use rb_w32_map_errno always.

  Modified files:
    trunk/ext/io/console/console.c
Index: ext/io/console/console.c
===================================================================
--- ext/io/console/console.c	(revision 50418)
+++ ext/io/console/console.c	(revision 50419)
@@ -50,11 +50,7 @@ typedef struct sgttyb conmode; https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L50
 #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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]