NSObjCRuntime: add availability macro definitions

Add empty definitions for OSX Availability macros for compatibility
purposes.
This commit is contained in:
Daniel Ferreira 2017-08-04 12:41:59 +10:00
parent 4e383e19d0
commit 49a8940156

View file

@ -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