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
This commit is contained in:
Nicola Pero 2010-12-22 23:47:12 +00:00
parent 90bc2ff63a
commit 15d62dc9ac
2 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
* config/objc-common.g: Include the correct headers to use the new
API if using the GNU Objective-C Runtime library from GCC 4.6.
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
* configure.ac (objc_thread_add): Check removed.

View file

@ -1,7 +1,13 @@
/* Common information for all objc runtime tests.
*/
#include <objc/objc.h>
#include <objc/objc-api.h>
#if __GNU_LIBOBJC__
# include <objc/runtime.h>
# include <objc/message.h>
#else
# include <objc/objc-api.h>
#endif
#include <objc/Object.h>
@ -9,6 +15,8 @@
#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
@ -23,9 +31,8 @@
#endif
/* Provide dummy implementations for NSObject and NSConstantString
* for runtime implementations which won't link without them.
* for libobjc2 which needs them.
*/
@interface NSObject
{
id isa;