ext/extconf.rb in ruby-prof-0.7.3 vs ext/extconf.rb in ruby-prof-0.7.4

- old
+ new

@@ -29,6 +29,12 @@ # Ruby 1.9 unexposed methods have_func("rb_gc_malloc_allocations") have_func("rb_gc_malloc_allocated_size") +def add_define(name) + $defs.push("-D#{name}") +end + +add_define 'RUBY_VM' if RUBY_VERSION >= '1.9' + create_makefile("ruby_prof")