libs-base/config/objc-common.g
gcasa a512ed3b02 Correct license text in sync.m and also correct the test to see if the ObjC compiler is working.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31519 72102866-910b-0410-8b05-ffd578937521
2010-10-16 20:43:33 +00:00

40 lines
662 B
Text

/* Common information for all objc runtime tests.
*/
#include <objc/objc.h>
#include <objc/objc-api.h>
#include <objc/Object.h>
#ifdef __GNUSTEP_RUNTIME__
#include <objc/hooks.h>
#endif
#if !defined(NeXT_RUNTIME) && !defined(__GNUSTEP_RUNTIME__)
@implementation NXConstantString
- (const char*) cString
{
return 0;
}
- (unsigned int) length
{
return 0;
}
@end
#endif
/* Provide dummy implementations for NSObject and NSConstantString
* for runtime implementations which won't link without them.
*/
@interface NSObject
{
id isa;
}
@end
@implementation NSObject
@end
@interface NSConstantString : NSObject
@end
@implementation NSConstantString
@end