mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(__BASE_FILE__ ## _link_stdobjects_o): New function. Kludge to force
linking of stdobjects. Anyone have any better ideas? git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5a2ce29a85
commit
250334c803
3 changed files with 27 additions and 21 deletions
|
@ -105,13 +105,15 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;})
|
|||
#define LONG2PTR(L) (((char*)0)+(L))
|
||||
#endif
|
||||
|
||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
||||
#if NeXT_runtime
|
||||
@interface Object (GNUExtensions)
|
||||
- (int)compare:anotherObject;
|
||||
- shouldNotImplement:(SEL)op;
|
||||
@end
|
||||
#endif /* NeXT_runtime */
|
||||
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||
This is needed to make sure that the Object category for implementing
|
||||
-autorelease is linked.
|
||||
Anyone have any less kludgy ideas? */
|
||||
|
||||
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||
{
|
||||
return objects_version;
|
||||
}
|
||||
|
||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
||||
|
||||
|
|
|
@ -105,13 +105,15 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;})
|
|||
#define LONG2PTR(L) (((char*)0)+(L))
|
||||
#endif
|
||||
|
||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
||||
#if NeXT_runtime
|
||||
@interface Object (GNUExtensions)
|
||||
- (int)compare:anotherObject;
|
||||
- shouldNotImplement:(SEL)op;
|
||||
@end
|
||||
#endif /* NeXT_runtime */
|
||||
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||
This is needed to make sure that the Object category for implementing
|
||||
-autorelease is linked.
|
||||
Anyone have any less kludgy ideas? */
|
||||
|
||||
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||
{
|
||||
return objects_version;
|
||||
}
|
||||
|
||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
||||
|
||||
|
|
|
@ -105,13 +105,15 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;})
|
|||
#define LONG2PTR(L) (((char*)0)+(L))
|
||||
#endif
|
||||
|
||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
||||
#if NeXT_runtime
|
||||
@interface Object (GNUExtensions)
|
||||
- (int)compare:anotherObject;
|
||||
- shouldNotImplement:(SEL)op;
|
||||
@end
|
||||
#endif /* NeXT_runtime */
|
||||
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||
This is needed to make sure that the Object category for implementing
|
||||
-autorelease is linked.
|
||||
Anyone have any less kludgy ideas? */
|
||||
|
||||
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||
{
|
||||
return objects_version;
|
||||
}
|
||||
|
||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
||||
|
||||
|
|
Loading…
Reference in a new issue