diff options
author | Jay Freeman <saurik@saurik.com> | 2008-03-28 15:59:24 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-03-28 15:59:24 +0000 |
commit | 083104aa46e49a5f331bb90506f58b5bb7dd828c (patch) | |
tree | 3d3f14d7a22a960dfb426aba07b2ac4b0d4382c8 | |
parent | afaa282e79a2d887ce66b405eeaeb465f90063ba (diff) |
Adding my various header hacks.
git-svn-id: http://svn.telesphoreo.org/trunk@194 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r-- | tool/patches/authorization.diff | 11 | ||||
-rw-r--r-- | tool/patches/availability.diff | 17 | ||||
-rw-r--r-- | tool/patches/fixmath.diff | 11 | ||||
-rw-r--r-- | tool/patches/signal.diff | 20 |
4 files changed, 59 insertions, 0 deletions
diff --git a/tool/patches/authorization.diff b/tool/patches/authorization.diff new file mode 100644 index 000000000..1d3f02f61 --- /dev/null +++ b/tool/patches/authorization.diff @@ -0,0 +1,11 @@ +--- /home/dat/bin/MacOSX10.5.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/Authorization.h 2008-02-19 11:34:25.000000000 +0000 ++++ /home/dat/apl/inc/Security/Authorization.h 2008-03-24 11:07:40.000000000 +0000 +@@ -30,7 +30,7 @@ + #ifndef _SECURITY_AUTHORIZATION_H_ + #define _SECURITY_AUTHORIZATION_H_ + +-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h> ++#include <MacTypes.h> + #include <stdio.h> + + #if defined(__cplusplus) diff --git a/tool/patches/availability.diff b/tool/patches/availability.diff new file mode 100644 index 000000000..0cbf0f8f3 --- /dev/null +++ b/tool/patches/availability.diff @@ -0,0 +1,17 @@ +--- /home/saurik/iphone/aspen-dev/SDKs/Aspen1.2.sdk/usr/include/AvailabilityMacros.h 2008-02-27 06:49:24.000000000 +0000 ++++ /apl/inc/AvailabilityMacros.h 2008-03-28 14:10:13.000000000 +0000 +@@ -84,7 +84,13 @@ + #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #define MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #else +- #if __ppc64__ || __i386__ || __x86_64__ ++ #ifdef __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ ++ #if __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 ++ #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4 ++ #else ++ #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_5 ++ #endif ++ #elif __ppc64__ || __i386__ || __x86_64__ + #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4 + #elif __arm__ + #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_5 diff --git a/tool/patches/fixmath.diff b/tool/patches/fixmath.diff new file mode 100644 index 000000000..a7649d890 --- /dev/null +++ b/tool/patches/fixmath.diff @@ -0,0 +1,11 @@ +--- /home/dat/bin/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/FixMath.h 2008-02-19 12:14:55.000000000 +0000 ++++ /apl/inc/CarbonCore/FixMath.h 2008-03-27 09:50:49.000000000 +0000 +@@ -90,7 +90,7 @@ + + #else + +- #error "Unknown architecture." ++ //#error "Unknown architecture." + // To use unoptimized standard C code, remove above line. + #define _IntSaturate(x) ((x) <= -0x1p31f ? (int) -0x80000000 : \ + 0x1p31f <= (x) ? (int) 0x7fffffff : (int) (x)) diff --git a/tool/patches/signal.diff b/tool/patches/signal.diff new file mode 100644 index 000000000..3e874e3f8 --- /dev/null +++ b/tool/patches/signal.diff @@ -0,0 +1,20 @@ +--- /home/saurik/iphone/aspen-dev/SDKs/Aspen1.2.sdk/usr/include/arm/signal.h 2008-02-27 05:37:19.000000000 +0000 ++++ /home/dat/apl/inc/arm/signal.h 2008-03-24 09:51:14.000000000 +0000 +@@ -13,6 +13,8 @@ + + #ifndef _ANSI_SOURCE + ++typedef int sig_atomic_t; ++ + #ifdef __APPLE_API_OBSOLETE + + #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) +@@ -20,8 +22,6 @@ + #define __need_struct_sigcontext + #include <arm/_structs.h> + +-typedef int sig_atomic_t; +- + #endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */ + + #endif /* __APPLE_API_OBSOLETE */ |