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:
parent
7ca1927af1
commit
88201504ae
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue