Permalink
Browse files

fixed a compilation error on Leopard

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2333 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent ce0ccd3 commit b1a1257fb55285d73012c6a7e2eba4bca3e89131 @vincentisambart vincentisambart committed Aug 16, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 vm.cpp
View
5 vm.cpp
@@ -3851,6 +3851,11 @@ rb_vm_yield_args(int argc, ...)
extern IMP basic_respond_to_imp; // vm_method.c
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+// the function is available on Leopard but it's not declared
+extern "C" id _objc_msgForward(id receiver, SEL sel, ...);
+#endif
+
static inline IMP
class_respond_to(Class klass, SEL sel)
{

0 comments on commit b1a1257

Please sign in to comment.