mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
93e78db04f
commit
6ac6760a0f
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))
|
#define LONG2PTR(L) (((char*)0)+(L))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||||
#if NeXT_runtime
|
This is needed to make sure that the Object category for implementing
|
||||||
@interface Object (GNUExtensions)
|
-autorelease is linked.
|
||||||
- (int)compare:anotherObject;
|
Anyone have any less kludgy ideas? */
|
||||||
- shouldNotImplement:(SEL)op;
|
|
||||||
@end
|
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||||
#endif /* NeXT_runtime */
|
{
|
||||||
|
return objects_version;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
#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))
|
#define LONG2PTR(L) (((char*)0)+(L))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||||
#if NeXT_runtime
|
This is needed to make sure that the Object category for implementing
|
||||||
@interface Object (GNUExtensions)
|
-autorelease is linked.
|
||||||
- (int)compare:anotherObject;
|
Anyone have any less kludgy ideas? */
|
||||||
- shouldNotImplement:(SEL)op;
|
|
||||||
@end
|
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||||
#endif /* NeXT_runtime */
|
{
|
||||||
|
return objects_version;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
#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))
|
#define LONG2PTR(L) (((char*)0)+(L))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GNU Object.[hm] defines -compare:, NeXT doesn't, libobjects needs it. */
|
/* A kludgy way to ensure that stdobjects.o is linked.
|
||||||
#if NeXT_runtime
|
This is needed to make sure that the Object category for implementing
|
||||||
@interface Object (GNUExtensions)
|
-autorelease is linked.
|
||||||
- (int)compare:anotherObject;
|
Anyone have any less kludgy ideas? */
|
||||||
- shouldNotImplement:(SEL)op;
|
|
||||||
@end
|
static char * __BASE_FILE__ ## _link_stdobjects_o()
|
||||||
#endif /* NeXT_runtime */
|
{
|
||||||
|
return objects_version;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
#endif /* __stdobjects_h_OBJECTS_INCLUDE */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue