diff options
Diffstat (limited to 'tool/patches/AvailabilityInternal.diff')
-rw-r--r-- | tool/patches/AvailabilityInternal.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tool/patches/AvailabilityInternal.diff b/tool/patches/AvailabilityInternal.diff new file mode 100644 index 000000000..12b4953d4 --- /dev/null +++ b/tool/patches/AvailabilityInternal.diff @@ -0,0 +1,24 @@ +diff --git /usr/include/AvailabilityInternal.h /usr/include/AvailabilityInternal.h +index bf8ba70..10caed4 100644 +--- /usr/include/AvailabilityInternal.h ++++ /usr/include/AvailabilityInternal.h +@@ -50,6 +50,19 @@ + #define __AVAILABILITY_INTERNAL__IPHONE_2_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED + #define __AVAILABILITY_INTERNAL__IPHONE_NA_DEP__IPHONE_NA __AVAILABILITY_INTERNAL_UNAVAILABLE + ++ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_1_2 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_1_2 __AVAILABILITY_INTERNAL_DEPRECATED ++ #else ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_1_2 __AVAILABILITY_INTERNAL__IPHONE_1_0 ++ #endif ++ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_2_0 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_2_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED ++ #else ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL__IPHONE_1_0 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_2_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL__IPHONE_1_2 ++ #endif ++ + #elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) + // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ |