diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2011-09-09 22:00:25 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2011-09-09 22:00:25 +0000 |
commit | f7f3e433ffb6b13ef738737e3b61f657191fd93f (patch) | |
tree | 164e7c462788460e5eb65e8523524e93dbd51d0b /GTMDefines.h | |
parent | e4c73da9b59d0b558d96c31968cd0787622c2ef6 (diff) |
[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)
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 24 |
1 files changed, 24 insertions, 0 deletions
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) |