From b38039723b1269c7de335710e8e89ad40ef2fcfe Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 25 Oct 2014 07:50:30 +0200 Subject: [PATCH] (CFExtensions/Apple) Put __has_feature definition on top --- apple/common/CFExtensions.m | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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)