mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
disable unneeded code on libobjc2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31353 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d713579ade
commit
0b8e723ec3
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-09-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/objc-load.m: Don't compile the dynamic_handles code with libobjc2.
|
||||
Note that this appears to be dead code anyway, so maybe it should be removed
|
||||
altogether?
|
||||
|
||||
2010-09-15 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSMessagePort.m:
|
||||
|
|
|
@ -58,7 +58,7 @@ static BOOL dynamic_loaded;
|
|||
static void (*_objc_load_load_callback)(Class, struct objc_category *) = 0;
|
||||
|
||||
/* List of modules we have loaded (by handle) */
|
||||
#ifndef NeXT_RUNTIME
|
||||
#if !defined(NeXT_RUNTIME) && !defined(__GNUSTEP_RUNTIME__)
|
||||
static struct objc_list *dynamic_handles = NULL;
|
||||
#endif
|
||||
|
||||
|
@ -189,7 +189,10 @@ GSPrivateLoadModule(NSString *filename, FILE *errorStream,
|
|||
_objc_load_callback = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if !defined(NeXT_RUNTIME) && !defined(__GNUSTEP_RUNTIME__)
|
||||
dynamic_handles = list_cons(handle, dynamic_handles);
|
||||
#endif
|
||||
|
||||
/* If there are any undefined symbols, we can't load the bundle */
|
||||
if (objc_check_undefineds(errorStream))
|
||||
|
|
Loading…
Reference in a new issue