diff --git a/apple/common/CFExtensions.m b/apple/common/CFExtensions.m index 0684f0f337..dccfdd4201 100644 --- a/apple/common/CFExtensions.m +++ b/apple/common/CFExtensions.m @@ -18,6 +18,11 @@ #import #include "CFExtensions.h" +#ifndef __has_feature +/* Compatibility with non-Clang compilers. */ +#define __has_feature(x) 0 +#endif + #ifndef CF_RETURNS_RETAINED #if __has_feature(attribute_cf_returns_retained) #define CF_RETURNS_RETAINED __attribute__((cf_returns_retained)) @@ -26,12 +31,6 @@ #endif #endif -#ifndef __has_feature -/* Compatibility with non-Clang compilers. */ -#define __has_feature(x) 0 -#endif - - NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetainCompat(id X) { #if __has_feature(objc_arc)