diff options
Diffstat (limited to 'recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch')
-rw-r--r-- | recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch b/recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch new file mode 100644 index 0000000..4faf9d6 --- /dev/null +++ b/recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch @@ -0,0 +1,128 @@ +Index: OSX-sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +=================================================================== +--- OSX-sdk.orig/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h ++++ OSX-sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +@@ -23,122 +23,6 @@ + #define __has_extension(x) 0 + #endif + +-// The arguments to these availability macros is a version number, e.g. 10_6, 3_0 or 'NA' +-// To use a deprecation message with the macro, add a string as the last argument. +-#if __has_feature(attribute_availability_with_message) +- +-#define __NSi_2_0 introduced=2.0 +-#define __NSi_2_1 introduced=2.1 +-#define __NSi_2_2 introduced=2.2 +-#define __NSi_3_0 introduced=3.0 +-#define __NSi_3_1 introduced=3.1 +-#define __NSi_3_2 introduced=3.2 +-#define __NSi_4_0 introduced=4.0 +-#define __NSi_4_1 introduced=4.1 +-#define __NSi_4_2 introduced=4.2 +-#define __NSi_4_3 introduced=4.3 +-#define __NSi_5_0 introduced=5.0 +-#define __NSi_5_1 introduced=5.1 +-#define __NSi_6_0 introduced=6.0 +-#define __NSi_6_1 introduced=6.1 +-#define __NSi_7_0 introduced=7.0 +-#define __NSi_7_1 introduced=7.1 +-#define __NSi_8_0 introduced=8.0 +-#define __NSi_8_1 introduced=8.1 +-#define __NSi_9_0 introduced=9.0 +-#define __NSi_9_1 introduced=9.1 +-#define __NSi_10_0 introduced=10.0 +-#define __NSi_10_1 introduced=10.1 +-#define __NSi_10_2 introduced=10.2 +-#define __NSi_10_3 introduced=10.3 +-#define __NSi_10_4 introduced=10.4 +-#define __NSi_10_5 introduced=10.5 +-#define __NSi_10_6 introduced=10.6 +-#define __NSi_10_7 introduced=10.7 +-#define __NSi_10_8 introduced=10.8 +-#define __NSi_10_9 introduced=10.9 +-#define __NSi_10_10 introduced=10.10 +-#define __NSi_10_10_2 introduced=10.10.2 +-#define __NSi_10_10_3 introduced=10.10.3 +- +-#define __NSd_2_0 ,deprecated=2.0 +-#define __NSd_2_1 ,deprecated=2.1 +-#define __NSd_2_2 ,deprecated=2.2 +-#define __NSd_3_0 ,deprecated=3.0 +-#define __NSd_3_1 ,deprecated=3.1 +-#define __NSd_3_2 ,deprecated=3.2 +-#define __NSd_4_0 ,deprecated=4.0 +-#define __NSd_4_1 ,deprecated=4.1 +-#define __NSd_4_2 ,deprecated=4.2 +-#define __NSd_4_3 ,deprecated=4.3 +-#define __NSd_5_0 ,deprecated=5.0 +-#define __NSd_5_1 ,deprecated=5.1 +-#define __NSd_6_0 ,deprecated=6.0 +-#define __NSd_6_1 ,deprecated=6.1 +-#define __NSd_7_0 ,deprecated=7.0 +-#define __NSd_7_1 ,deprecated=7.1 +-#define __NSd_8_0 ,deprecated=8.0 +-#define __NSd_8_1 ,deprecated=8.1 +-#define __NSd_9_0 ,deprecated=9.0 +-#define __NSd_9_1 ,deprecated=9.1 +-#define __NSd_10_0 ,deprecated=10.0 +-#define __NSd_10_1 ,deprecated=10.1 +-#define __NSd_10_2 ,deprecated=10.2 +-#define __NSd_10_3 ,deprecated=10.3 +-#define __NSd_10_4 ,deprecated=10.4 +-#define __NSd_10_5 ,deprecated=10.5 +-#define __NSd_10_6 ,deprecated=10.6 +-#define __NSd_10_7 ,deprecated=10.7 +-#define __NSd_10_8 ,deprecated=10.8 +-#define __NSd_10_9 ,deprecated=10.9 +-#define __NSd_10_10 ,deprecated=10.10 +-#define __NSd_10_10_2 ,deprecated=10.10.2 +-#define __NSd_10_10_3 ,deprecated=10.10.3 +- +-#define __NSi_NA unavailable +-#define __NSd_NA +- +-// Do not use TBD as an argument to NS_AVAILABLE +-#define __NSi_TBD introduced=9876.5 +- +-#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) +-// This section is for compilers targeting OS X which support attribute_availability_with_message +- +-#define CF_AVAILABLE(_mac, _ios) __attribute__((availability(macosx,__NSi_##_mac))) +-#define CF_AVAILABLE_MAC(_mac) __attribute__((availability(macosx,__NSi_##_mac))) +-#define CF_AVAILABLE_IOS(_ios) __attribute__((availability(macosx,unavailable))) +-#define CF_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...) __attribute__((availability(macosx,__NSi_##_macIntro __NSd_##_macDep,message="" __VA_ARGS__))) +-#define CF_DEPRECATED_MAC(_macIntro, _macDep, ...) __attribute__((availability(macosx,__NSi_##_macIntro __NSd_##_macDep,message="" __VA_ARGS__))) +-#define CF_DEPRECATED_IOS(_iosIntro, _iosDep, ...) __attribute__((availability(macosx,unavailable))) +- +-#elif (TARGET_OS_EMBEDDED || TARGET_OS_IPHONE) +-// This section is for compilers targeting iOS which support attribute_availability_with_message +- +-#define CF_AVAILABLE(_mac, _ios) __attribute__((availability(ios,__NSi_##_ios))) +-#define CF_AVAILABLE_MAC(_mac) __attribute__((availability(ios,unavailable))) +-#define CF_AVAILABLE_IOS(_ios) __attribute__((availability(ios,__NSi_##_ios))) +-#define CF_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...) __attribute__((availability(ios,__NSi_##_iosIntro __NSd_##_iosDep,message="" __VA_ARGS__))) +-#define CF_DEPRECATED_MAC(_macIntro, _macDep, ...) __attribute__((availability(ios,unavailable))) +-#define CF_DEPRECATED_IOS(_iosIntro, _iosDep, ...) __attribute__((availability(ios,__NSi_##_iosIntro __NSd_##_iosDep,message="" __VA_ARGS__))) +- +-#endif +- +-#elif (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) || (TARGET_OS_EMBEDDED || TARGET_OS_IPHONE) +-// This section is for OS X or iOS, and compilers without support for attribute_availability_with_message. We fall back to Availability.h. +- +-#ifndef __AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_0 +-#define __AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_0 __AVAILABILITY_INTERNAL_DEPRECATED +-#endif +- +-#define CF_AVAILABLE(_mac, _ios) __OSX_AVAILABLE_STARTING(__MAC_##_mac, __IPHONE_##_ios) +-#define CF_AVAILABLE_MAC(_mac) __OSX_AVAILABLE_STARTING(__MAC_##_mac, __IPHONE_NA) +-#define CF_AVAILABLE_IOS(_ios) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_##_ios) +-#define CF_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_##_macIntro, __MAC_##_macDep, __IPHONE_##_iosIntro, __IPHONE_##_iosDep) +-#define CF_DEPRECATED_MAC(_macIntro, _macDep, ...) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_##_macIntro, __MAC_##_macDep, __IPHONE_NA, __IPHONE_NA) +-#define CF_DEPRECATED_IOS(_iosIntro, _iosDep, ...) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA, __MAC_NA, __IPHONE_##_iosIntro, __IPHONE_##_iosDep) +- +-#endif // __has_feature(attribute_availability_with_message) +- + #ifndef CF_AVAILABLE + // This section is for platforms which do not support availability + #define CF_AVAILABLE(_mac, _ios) + |