Temprary fix for older compilers ... avoid setting protocol for proxy

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17101 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-04 14:21:05 +00:00
parent 03086200c9
commit c056845ac4
3 changed files with 10 additions and 3 deletions

View file

@ -832,7 +832,6 @@ enum
else
{
id m;
const char *types;
#ifdef USE_FFCALL
id inv;
id sig;
@ -854,8 +853,13 @@ enum
retframe = [self forward: _cmd : args];
m = retframe_id(retframe);
#endif
types = [m methodType];
return [NSMethodSignature signatureWithObjCTypes: types];
if ([m isProxy] == YES)
{
const char *types = [m methodType];
m = [NSMethodSignature signatureWithObjCTypes: types];
}
return m;
}
}
}

View file

@ -575,9 +575,11 @@ static NSDistributedNotificationCenter *netCenter = nil;
if (_remote != nil)
{
NSConnection *c = [_remote connectionForProxy];
#if 0 // When all compilers support this
Protocol *p = @protocol(GDNCProtocol);
[_remote setProtocolForProxy: p];
#endif
/*
* Ensure that this center can be used safely from different

View file

@ -864,6 +864,7 @@ main(int argc, char** argv, char** env)
#ifdef GS_PASS_ARGUMENTS
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
[NSObject enableDoubleReleaseCheck: YES];
if (argc > 1 && strcmp(argv[argc-1], "-f") == 0)
{
shouldFork = NO;