mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
90bc2ff63a
commit
15d62dc9ac
2 changed files with 15 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue