From e054b0321e20e41b5b641a2be133b253b60c5c98 Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 12 Oct 2009 19:04:21 +0000 Subject: [PATCH] fix missing macro git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28817 72102866-910b-0410-8b05-ffd578937521 --- Headers/Additions/GNUstepBase/GSObjCRuntime.h | 9 +++++++++ Source/Additions/GSObjCRuntime.m | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Headers/Additions/GNUstepBase/GSObjCRuntime.h b/Headers/Additions/GNUstepBase/GSObjCRuntime.h index f5ebced51..b3afdeb46 100644 --- a/Headers/Additions/GNUstepBase/GSObjCRuntime.h +++ b/Headers/Additions/GNUstepBase/GSObjCRuntime.h @@ -97,6 +97,15 @@ extern "C" { #define _C_BYREF 'R' #define _C_ONEWAY 'V' #define _C_GCINVISIBLE '!' +#else + +#define class_nextMethodList(aClass,anIterator) (({\ + if (*(anIterator) == 0) \ + *((struct objc_method_list**)(anIterator)) = (aClass)->methods; \ + else \ + *(anIterator) = (*((struct objc_method_list**)(anIterator)))->method_next; \ +}), *(anIterator)) + #endif #ifndef NO_GNUSTEP diff --git a/Source/Additions/GSObjCRuntime.m b/Source/Additions/GSObjCRuntime.m index ef1379714..d703bb74c 100644 --- a/Source/Additions/GSObjCRuntime.m +++ b/Source/Additions/GSObjCRuntime.m @@ -62,15 +62,6 @@ @interface NSObject (MissingFromMacOSX) + (IMP) methodForSelector: (SEL)aSelector; @end -#else - -#define class_nextMethodList(aClass,anIterator) (({\ - if (*(anIterator) == 0) \ - *((struct objc_method_list**)(anIterator)) = (aClass)->methods; \ - else \ - *(anIterator) = (*((struct objc_method_list**)(anIterator)))->method_next; \ -}), *(anIterator)) - #endif #define BDBGPrintf(format, args...) \