Fixed C99ism.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32381 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-02-26 19:23:26 +00:00
parent b718e8bdd4
commit 9234b0af72

View file

@ -12,6 +12,7 @@ void _Block_release(void *);
+ (void)load + (void)load
{ {
unsigned int methodCount; unsigned int methodCount;
Method *m = methods = NULL;
Method *methods = Method *methods =
class_copyMethodList(self, &methodCount); class_copyMethodList(self, &methodCount);
id blockClass = objc_lookUpClass("_NSBlock"); id blockClass = objc_lookUpClass("_NSBlock");
@ -22,7 +23,7 @@ void _Block_release(void *);
// Copy all of the methods in this class onto the block-runtime-provided // Copy all of the methods in this class onto the block-runtime-provided
// _NSBlock // _NSBlock
for (Method *m = methods ; NULL!=*m ; m++) for (m = methods ; NULL!=*m ; m++)
{ {
class_addMethod(blockClass, method_getName(*m), class_addMethod(blockClass, method_getName(*m),
method_getImplementation(*m), method_getTypeEncoding(*m)); method_getImplementation(*m), method_getTypeEncoding(*m));