libs-base/config/objc-common.g
nicola 9eb0d1d2d4 Updated config tests for GCC 4.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31762 72102866-910b-0410-8b05-ffd578937521
2010-12-22 23:47:12 +00:00

47 lines
864 B
Text

/* Common information for all objc runtime tests.
*/
#include <objc/objc.h>
#if __GNU_LIBOBJC__
# include <objc/runtime.h>
# include <objc/message.h>
#else
# include <objc/objc-api.h>
#endif
#include <objc/Object.h>
#ifdef __GNUSTEP_RUNTIME__
#include <objc/hooks.h>
#endif
/* Provide an implementation of NXConstantString for an old libobjc when
built stand-alone without an NXConstantString implementation. */
#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 libobjc2 which needs them.
*/
@interface NSObject
{
id isa;
}
@end
@implementation NSObject
@end
@interface NSConstantString : NSObject
@end
@implementation NSConstantString
@end