libs-base/config/config.nextrt.m
Richard Frith-MacDonald f77619ab3c Attempts to cope with new runtime's failure to link without base.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29636 72102866-910b-0410-8b05-ffd578937521
2010-02-15 09:35:20 +00:00

18 lines
357 B
Objective-C

/* A function for testing if the compiler is using the NeXT Objective C
runtime or not.
With the NeXT runtime this file compiles and links.
With the GNU runtime, this file does not link.
*/
#include "objc-common.g"
int libobjects_nextrt_checker ()
{
id o = [[Object alloc] init];
[o self];
objc_msgSend(o, @selector(self));
exit(0);
}