From 676f5758e421061f4407337a821a89842c0c98e6 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 1 Jul 2010 17:31:05 +0000 Subject: [Author: dmaclach] Fix up GTMiPhone Unit test issue with tests never starting. DELTA=64 (63 added, 0 deleted, 1 changed) R=thomasvl --- GTMDefines.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'GTMDefines.h') 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) -- cgit v1.2.3