diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 1bc885b1..c7739623 100644 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -2,10 +2,11 @@ have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ +have_library('winmm') if RUBY_PLATFORM =~ /mingw/ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" -$CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" -$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/ +$CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /mingw/ +$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin|mingw/ CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ if CONFIG['warnflags'] diff --git a/ext/v8/object.cc b/ext/v8/object.cc index e63ee3b7..4670cbc8 100644 --- a/ext/v8/object.cc +++ b/ext/v8/object.cc @@ -120,12 +120,12 @@ VALUE Object::ForceDelete(VALUE self, VALUE key) { VALUE Object::SetAccessor(int argc, VALUE* argv, VALUE self) { VALUE name; VALUE get; VALUE set; VALUE data; VALUE settings; VALUE attribs; rb_scan_args(argc, argv, "24", &name, &get, &set, &data, &settings, &attribs); - Accessor access(get, set, data); + Accessor accessor(get, set, data); return Bool(Object(self)->SetAccessor( String(name), - access.accessorGetter(), - access.accessorSetter(), - access, + accessor.accessorGetter(), + accessor.accessorSetter(), + accessor, AccessControl(settings), PropertyAttribute(attribs)) );