1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/memory_status/extconf.rb
nobu 1bbe67f5f6 memory_status.c: Win32 API
* 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
2016-10-08 01:54:24 +00:00

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