mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
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:
parent
03086200c9
commit
c056845ac4
3 changed files with 10 additions and 3 deletions
|
@ -832,7 +832,6 @@ enum
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
id m;
|
id m;
|
||||||
const char *types;
|
|
||||||
#ifdef USE_FFCALL
|
#ifdef USE_FFCALL
|
||||||
id inv;
|
id inv;
|
||||||
id sig;
|
id sig;
|
||||||
|
@ -854,8 +853,13 @@ enum
|
||||||
retframe = [self forward: _cmd : args];
|
retframe = [self forward: _cmd : args];
|
||||||
m = retframe_id(retframe);
|
m = retframe_id(retframe);
|
||||||
#endif
|
#endif
|
||||||
types = [m methodType];
|
if ([m isProxy] == YES)
|
||||||
return [NSMethodSignature signatureWithObjCTypes: types];
|
{
|
||||||
|
const char *types = [m methodType];
|
||||||
|
|
||||||
|
m = [NSMethodSignature signatureWithObjCTypes: types];
|
||||||
|
}
|
||||||
|
return m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,9 +575,11 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
||||||
if (_remote != nil)
|
if (_remote != nil)
|
||||||
{
|
{
|
||||||
NSConnection *c = [_remote connectionForProxy];
|
NSConnection *c = [_remote connectionForProxy];
|
||||||
|
#if 0 // When all compilers support this
|
||||||
Protocol *p = @protocol(GDNCProtocol);
|
Protocol *p = @protocol(GDNCProtocol);
|
||||||
|
|
||||||
[_remote setProtocolForProxy: p];
|
[_remote setProtocolForProxy: p];
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ensure that this center can be used safely from different
|
* Ensure that this center can be used safely from different
|
||||||
|
|
|
@ -864,6 +864,7 @@ main(int argc, char** argv, char** env)
|
||||||
#ifdef GS_PASS_ARGUMENTS
|
#ifdef GS_PASS_ARGUMENTS
|
||||||
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
|
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
|
||||||
#endif
|
#endif
|
||||||
|
[NSObject enableDoubleReleaseCheck: YES];
|
||||||
if (argc > 1 && strcmp(argv[argc-1], "-f") == 0)
|
if (argc > 1 && strcmp(argv[argc-1], "-f") == 0)
|
||||||
{
|
{
|
||||||
shouldFork = NO;
|
shouldFork = NO;
|
||||||
|
|
Loading…
Reference in a new issue