mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1bbe67f5f6
* ext/-test-/memory_status/memory_status.c (read_status): use Win32 GetProcessMemoryInfo API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
247 B
Ruby
12 lines
247 B
Ruby
case RUBY_PLATFORM
|
|
when /darwin/
|
|
ok = true
|
|
when /mswin/, /mingw/
|
|
func = "GetProcessMemoryInfo(0, 0, 0)"
|
|
hdr = "psapi.h"
|
|
ok = have_func(func, hdr) || have_library("psapi", func, hdr)
|
|
end
|
|
|
|
if ok
|
|
create_makefile("-test-/memory_status")
|
|
end
|