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

ruby-changes:38347

From: nobu <ko1@a...>
Date: Tue, 5 May 2015 19:54:55 +0900 (JST)
Subject: [ruby-changes:38347] nobu:r50428 (trunk): io/console: vk_header only on Windows

nobu	2015-05-05 19:54:37 +0900 (Tue, 05 May 2015)

  New Revision: 50428

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

  Log:
    io/console: vk_header only on Windows
    
    * ext/io/console/extconf.rb: vk_header is used only on Windows,
      nonsense to update on other platforms.

  Modified files:
    trunk/ext/io/console/extconf.rb
Index: ext/io/console/extconf.rb
===================================================================
--- ext/io/console/extconf.rb	(revision 50427)
+++ ext/io/console/extconf.rb	(revision 50428)
@@ -5,7 +5,7 @@ hdr = nil https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L5
 case
 when macro_defined?("_WIN32", "")
   # rb_w32_map_errno: 1.8.7
-  win32 = true
+  vk_header = "win32_vk.h"
 when hdr = %w"termios.h termio.h".find {|h| have_header(h)}
   have_func("cfmakeraw", hdr)
 when have_header(hdr = "sgtty.h")
@@ -19,6 +19,6 @@ if ok https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L19
   # rb_io_get_write_io: 1.9.1
   # rb_cloexec_open: 2.0.0
   create_makefile("io/console") {|conf|
-    conf << "\n""VK_HEADER = win32_vk.h\n"
+    conf << "\n""VK_HEADER = #{vk_header}\n"
   }
 end

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

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