(CFExtensions/Apple) Put __has_feature definition on top

This commit is contained in:
twinaphex 2014-10-25 07:50:30 +02:00
parent 0a8734d090
commit b38039723b

View File

@ -18,6 +18,11 @@
#import <Foundation/NSPathUtilities.h>
#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)