diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-07-02 09:04:55 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-07-02 09:04:55 +0000 |
commit | 8c7481f253d8943d16947248d76d7f717f8d7028 (patch) | |
tree | 313edfe1d2ed01bfc0a676c807723550038ab4cb /gcc/testsuite/objc-obj-c++-shared/next-abi.h | |
parent | 9a082684dfe6a5473f7f0bc4ec7373c01153aff7 (diff) | |
download | gcc-8c7481f253d8943d16947248d76d7f717f8d7028.zip gcc-8c7481f253d8943d16947248d76d7f717f8d7028.tar.gz gcc-8c7481f253d8943d16947248d76d7f717f8d7028.tar.bz2 |
restore darwin8 objc/c++ test functionality.
* objc-obj-c++-shared/next-abi.h: Remove dependency on system
headers. Add clause to reflect that, pre-10.5, ABI is always 0.
* objc/execute/forward-1.m: Depend only on __NEXT_RUNTIME__ for
the method types to forward:.
From-SVN: r161687
Diffstat (limited to 'gcc/testsuite/objc-obj-c++-shared/next-abi.h')
-rw-r--r-- | gcc/testsuite/objc-obj-c++-shared/next-abi.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/objc-obj-c++-shared/next-abi.h b/gcc/testsuite/objc-obj-c++-shared/next-abi.h index 21a49d3..3ab9804 100644 --- a/gcc/testsuite/objc-obj-c++-shared/next-abi.h +++ b/gcc/testsuite/objc-obj-c++-shared/next-abi.h @@ -19,7 +19,7 @@ #undef NEXT_OBJC_USE_NEW_INTERFACE #ifdef __NEXT_RUNTIME__ -# if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 || __OBJC2__) +# if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 || __OBJC2__) /* We have to use an updated interface for 32bit NeXT to avoid * 'deprecated' warnings. * For 64bit NeXT the ABI is different (and the interfaces 'deprecated' @@ -36,7 +36,10 @@ */ # define NEXT_OBJC_ABI_VERSION 0 # endif -# endif -#endif +# else + /* Pre-OSX 10.5 all is ABI 0. */ +# define NEXT_OBJC_ABI_VERSION 0 +# endif /* MAC_OS_X_VERSION_MIN_REQUIRED > 10.5 or OBJC2 */ +#endif /* __NEXT_RUNTIME__ */ #endif /* _OBJC_NEXT_ABI_H_ */ |