diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-07-01 17:31:05 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-07-01 17:31:05 +0000 |
commit | 676f5758e421061f4407337a821a89842c0c98e6 (patch) | |
tree | 91c1b89813408e831abb2d9c9f5622cc6ad4a218 /GTMDefines.h | |
parent | c7bdc517ad868dbd964890eb92d055d79343e589 (diff) |
[Author: dmaclach]
Fix up GTMiPhone Unit test issue with tests never starting.
DELTA=64 (63 added, 0 deleted, 1 changed)
R=thomasvl
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) |