summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-01 23:12:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-01 23:12:52 +0000
commit2478f1caaf72fa07201c3f461ade8d2bd13f21ca (patch)
tree5f0279f00fc3f6744ef2bcd90e5e95d2d2147409 /ext
parenta7b5c603b4747704d8ed7ce22c342649e88f6993 (diff)
* lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
platform names. * lib/resolv.rb (Resolv::Hosts::DefaultFileName), (Resolv::DNS::Config.default_config_hash): tries win32/resolv on mswin64 too. * lib/rubygems/specification.rb (Gem::Specification#ruby_code): aded mswin64. * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command): spawn is better to start a process in background. * ext/extmk.rb: uses FNM_SYSCASE. * instruby.rb: installs win32.h on mswin64 platform. [ruby-core:21722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb4
-rw-r--r--ext/win32ole/extconf.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 406695f..5a99f32 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -351,7 +351,7 @@ $static_ext = {}
if $extstatic
$extstatic.each do |t|
target = t
- target = target.downcase if /mswin32|bccwin32/ =~ RUBY_PLATFORM
+ target = target.downcase if File::FNM_SYSCASE.nonzero?
$static_ext[target] = $static_ext.size
end
end
@@ -371,7 +371,7 @@ for dir in ["ext", File::join($top_srcdir, "ext")]
end
next
end
- target = target.downcase if /mswin32|bccwin32/ =~ RUBY_PLATFORM
+ target = target.downcase if File::FNM_SYSCASE.nonzero?
$static_ext[target] = $static_ext.size
end
MTIMES << f.mtime
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index 06a3f14..500bd3d 100644
--- a/ext/win32ole/extconf.rb
+++ b/ext/win32ole/extconf.rb
@@ -36,7 +36,7 @@ end
case RUBY_PLATFORM
-when /mswin32/
+when /mswin/
$CFLAGS += ' /W3'
when /cygwin/, /mingw/
$defs << '-DNONAMELESSUNION'