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:
Daniel Ferreira 2017-06-15 17:39:05 +00:00 committed by Ivan Vučica
parent dc88164c94
commit ec9e4055dd

View file

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