mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/memory_status.rb (Memory::Win32): sorry, ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88201504ae
commit
d0a4fecffc
1 changed files with 5 additions and 2 deletions
|
@ -19,12 +19,15 @@ module Memory
|
|||
require 'fiddle/import'
|
||||
rescue LoadError
|
||||
require 'dl/import'
|
||||
::Fiddle = ::DL
|
||||
end
|
||||
require 'dl/types'
|
||||
|
||||
module Win32
|
||||
begin
|
||||
extend Fiddle::Importer
|
||||
rescue NameError
|
||||
extend DL::Importer
|
||||
end
|
||||
dlload "kernel32.dll", "psapi.dll"
|
||||
include DL::Win32Types
|
||||
typealias "SIZE_T", "size_t"
|
||||
|
|
Loading…
Add table
Reference in a new issue