libs-base/config/objc-common.g
rfm 1c46da5995 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

34 lines
588 B
Text

/* Common information for all objc runtime tests.
*/
#include <objc/objc.h>
#include <objc/objc-api.h>
#include <objc/Object.h>
#ifndef NeXT_RUNTIME
#include <objc/NXConstStr.h>
@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 : Object
@end
@implementation NSObject
@end
@interface NSConstantString : NSObject
@end
@implementation NSConstantString
@end