libs-base/config/config.nextrt.m
Andrew McCallum 0098375b73 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
1994-11-04 16:29:24 +00:00

18 lines
358 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/Object.h>
int libobjects_nextrt_checker ()
{
id o = [[Object alloc] init];
[o self];
objc_msgSend(o, @selector(self));
exit(0);
}