Revision
3184
Author
lsansonetti@apple.com
Date
2010-01-04 14:05:56 -0800 (Mon, 04 Jan 2010)

Log Message

fix Leopard build (patch by kouji at takao7.net)

Modified Paths

Diff

Modified: MacRuby/trunk/dispatcher.cpp (3183 => 3184)


--- MacRuby/trunk/dispatcher.cpp	2010-01-04 19:01:13 UTC (rev 3183)
+++ MacRuby/trunk/dispatcher.cpp	2010-01-04 22:05:56 UTC (rev 3184)
@@ -1821,6 +1821,11 @@
 
 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
+
 bool
 RoxorCore::respond_to(VALUE obj, VALUE klass, SEL sel, bool priv,
 	bool check_override)