freebsd-ports/devel/ruby-gnustep/files/patch-RIGSCore.m
Dirk Meyer 0f084d5028 - Add WITH_GNUSTEP_DEVEL
- resolve namespace confict
Approved by:	knu
2003-06-18 05:20:04 +00:00

23 lines
688 B
Objective-C

--- Source/RIGSCore.m.orig Sat May 31 18:23:50 2003
+++ Source/RIGSCore.m Sun Jun 1 16:57:00 2003
@@ -988,7 +988,7 @@
(see below)
*/
#ifdef GNUSTEP
-static MethodList_t class_nextMethodList( Class class, void ** iterator_ptr)
+static MethodList_t rb_class_nextMethodList( Class class, void ** iterator_ptr)
{
MethodList_t mlist;
@@ -1015,7 +1015,11 @@
while(class) {
+#ifdef GNUSTEP
+ while( (mlist = rb_class_nextMethodList(class, &iterator)) != NULL) {
+#else
while( (mlist = class_nextMethodList(class, &iterator)) != NULL) {
+#endif
for(i = 0; i < mlist->method_count; i++) {
SEL sel = mlist->method_list[i].method_name;