mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
NSObjCRuntime: add availability macro definitions
Add empty definitions for OSX Availability macros for compatibility purposes.
This commit is contained in:
parent
4e383e19d0
commit
49a8940156
1 changed files with 14 additions and 7 deletions
|
@ -286,13 +286,20 @@ DEFINE_BLOCK_TYPE(NSComparator, NSComparisonResult, id, id);
|
|||
/**
|
||||
* Declare Apple availability macros for compatibility purposes as no-ops.
|
||||
*/
|
||||
#ifndef NS_CLASS_AVAILABLE
|
||||
#define NS_CLASS_AVAILABLE(x, y)
|
||||
#endif
|
||||
|
||||
#ifndef NS_AVAILABLE
|
||||
#define NS_AVAILABLE(x, y)
|
||||
#endif
|
||||
#define NS_CLASS_AVAILABLE(...)
|
||||
#define NS_AVAILABLE(...)
|
||||
#define NS_AVAILABLE_MAC(...)
|
||||
#define NS_DEPRECATED(...)
|
||||
#define NS_DEPRECATED_MAC(...)
|
||||
#define NS_ENUM_AVAILABLE(...)
|
||||
#define NS_ENUM_AVAILABLE_MAC(...)
|
||||
#define NS_ENUM_DEPRECATED(...)
|
||||
#define NS_ENUM_DEPRECATED_MAC(...)
|
||||
#define NS_CLASS_AVAILABLE(...)
|
||||
#define NS_CLASS_DEPRECATED(...)
|
||||
#define NS_CLASS_AVAILABLE_MAC(...)
|
||||
#define NS_CLASS_DEPRECATED_MAC(...)
|
||||
#define NS_UNAVAILABLE
|
||||
|
||||
/* Define root class NS macro */
|
||||
#ifndef NS_ROOT_CLASS
|
||||
|
|
Loading…
Reference in a new issue