1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/memory_status.rb (Memory::Win32): rescue non libffi user, such as ko1.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-11-30 11:15:36 +00:00
parent 7ca1927af1
commit 88201504ae

View file

@ -15,7 +15,12 @@ module Memory
read_status {|k, v| keys << k; vals << v}
when /mswin|mingw/ =~ RUBY_PLATFORM
require 'fiddle/import'
begin
require 'fiddle/import'
rescue LoadError
require 'dl/import'
::Fiddle = ::DL
end
require 'dl/types'
module Win32