diff --git a/Headers/CoreFoundation/CFCGTypes.h b/Headers/CoreFoundation/CFCGTypes.h index 13cef938a5..959edc99fb 100644 --- a/Headers/CoreFoundation/CFCGTypes.h +++ b/Headers/CoreFoundation/CFCGTypes.h @@ -29,8 +29,12 @@ #define CF_DEFINES_CG_TYPES -#if defined(__has_attribute) && __has_attribute(objc_boxable) -# define CF_BOXABLE __attribute__((objc_boxable)) +#if defined __has_attribute +# if __has_attribute(objc_boxable) +# define CF_BOXABLE __attribute__((objc_boxable)) +# else +# define CF_BOXABLE +# endif #else # define CF_BOXABLE #endif