diff options
Diffstat (limited to 'ext/-test-/memory_status/extconf.rb')
| -rw-r--r-- | ext/-test-/memory_status/extconf.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/-test-/memory_status/extconf.rb b/ext/-test-/memory_status/extconf.rb new file mode 100644 index 0000000000..1c1096d8f4 --- /dev/null +++ b/ext/-test-/memory_status/extconf.rb @@ -0,0 +1,12 @@ +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 |
