Skip to content

Commit

Permalink
We, poor Leopard users, do not have all the fixes that might have gone
Browse files Browse the repository at this point in the history
into Snow Leopard

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2746 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
vincentisambart committed Oct 7, 2009
1 parent c80c60a commit 76a82ce
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bridgesupport.cpp
Expand Up @@ -1092,6 +1092,28 @@ RoxorCore::load_bridge_support(const char *path, const char *framework_path,
R6399046_fixed = true;
}
}
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
static bool R6401816_fixed = false;
// XXX work around for
// <rdar://problem/6401816> -[NSObject performSelector:withObject:] has wrong sel_of_type attributes
if (!R6401816_fixed) {
bs_element_method_t *bs_method = GET_CORE()->find_bs_method((Class)rb_cNSObject,
sel_registerName("performSelector:withObject:"));
if (bs_method != NULL) {
bs_element_arg_t *arg = bs_method->args;
while (arg != NULL) {
if (arg->index == 0
&& arg->sel_of_type != NULL
&& arg->sel_of_type[0] != '@') {
arg->sel_of_type[0] = '@';
R6401816_fixed = true;
break;
}
arg++;
}
}
}
#endif
static bool R7281806fixed = false;
// XXX work around for
Expand Down

0 comments on commit 76a82ce

Please sign in to comment.