mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Attempt to link in ObjC2 compatibility code if we have an older runtime.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7cc69dfaae
commit
073595b9e9
11 changed files with 1246 additions and 863 deletions
12
Source/ObjectiveC2/Availability.h
Normal file
12
Source/ObjectiveC2/Availability.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
#ifdef STRICT_MACOS_X
|
||||
# define OBJC_NONPORTABLE __attribute__((error("Function not supported by the Apple runtime")))
|
||||
#else
|
||||
# define OBJC_NONPORTABLE
|
||||
#endif
|
||||
|
||||
#if !defined(__DEPRECATE_DIRECT_ACCESS) || defined(__OBJC_LEGACY_GNU_MODE__) || defined(__OBJC_RUNTIME_INTERNAL__)
|
||||
# define OBJC_DEPRECATED
|
||||
#else
|
||||
# define OBJC_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue