mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
NSObjCRuntime: create stubs for Apple availability macros
Make NS_AVAILABLE and NS_CLASS_AVAILABLE macros no-ops so that their absence does not break projects that rely on it.
This commit is contained in:
parent
dc88164c94
commit
ec9e4055dd
1 changed files with 11 additions and 0 deletions
|
@ -283,4 +283,15 @@ DEFINE_BLOCK_TYPE(NSComparator, NSComparisonResult, id, id);
|
|||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
#endif /* __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
Loading…
Reference in a new issue