diff options
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index 687f2a7..76b7947 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -298,6 +298,14 @@ GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...); #endif #endif +#ifndef NS_RETURNS_NOT_RETAINED + #if __has_feature(attribute_ns_returns_not_retained) + #define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained)) + #else + #define NS_RETURNS_NOT_RETAINED + #endif +#endif + #ifndef CF_RETURNS_RETAINED #if __has_feature(attribute_cf_returns_retained) #define CF_RETURNS_RETAINED __attribute__((cf_returns_retained)) @@ -306,6 +314,14 @@ GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...); #endif #endif +#ifndef CF_RETURNS_NOT_RETAINED + #if __has_feature(attribute_cf_returns_not_retained) + #define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained)) + #else + #define CF_RETURNS_NOT_RETAINED + #endif +#endif + // Defined on 10.6 and above. #ifndef NS_FORMAT_ARGUMENT #define NS_FORMAT_ARGUMENT(A) |