From f7f3e433ffb6b13ef738737e3b61f657191fd93f Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 9 Sep 2011 22:00:25 +0000 Subject: [Author: dmaclach] Clean up clang issues in GTM. The one in GTMABAddressBook is a weird one, that I'll try and file a bug on. R=thomasvl DELTA=92 (53 added, 6 deleted, 33 changed) --- GTMDefines.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'GTMDefines.h') diff --git a/GTMDefines.h b/GTMDefines.h index 97875c8..9ef6fcc 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -294,6 +294,30 @@ #endif #endif +#ifndef NS_CONSUMED + #if __has_feature(attribute_ns_consumed) + #define NS_CONSUMED __attribute__((ns_consumed)) + #else + #define NS_CONSUMED + #endif +#endif + +#ifndef CF_CONSUMED + #if __has_feature(attribute_cf_consumed) + #define CF_CONSUMED __attribute__((cf_consumed)) + #else + #define CF_CONSUMED + #endif +#endif + +#ifndef NS_CONSUMES_SELF + #if __has_feature(attribute_ns_consumes_self) + #define NS_CONSUMES_SELF __attribute__((ns_consumes_self)) + #else + #define NS_CONSUMES_SELF + #endif +#endif + // Defined on 10.6 and above. #ifndef NS_FORMAT_ARGUMENT #define NS_FORMAT_ARGUMENT(A) -- cgit v1.2.3