diff options
author | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-03-05 21:31:38 +0000 |
---|---|---|
committer | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-03-05 21:31:38 +0000 |
commit | d4f38903d60f8b01c419f5056c2fb3cd4c6c6e60 (patch) | |
tree | 068c2b24060b2cf986a19a8a4f0d27ffc9c25d43 /GTMDefines.h | |
parent | fee6778710c82dfbee04ab23061a96d324facfdb (diff) |
- allow target_os_iphone to be defined to zero (like some new headers do).
- move the include of system headers up for safety.
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index 5012e49..b88193c 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -19,6 +19,7 @@ // ============================================================================ #include <AvailabilityMacros.h> +#include <TargetConditionals.h> // Not all MAC_OS_X_VERSION_10_X macros defined in past SDKs #ifndef MAC_OS_X_VERSION_10_5 @@ -149,7 +150,7 @@ GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...); // does keys, so pick the right thing, nothing is done on the FastEnumeration // side to be sure you're getting what you wanted. #ifndef GTM_FOREACH_OBJECT - #if defined(TARGET_OS_IPHONE) || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) + #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) #define GTM_FOREACH_OBJECT(element, collection) \ for (element in collection) #define GTM_FOREACH_KEY(element, collection) \ @@ -174,7 +175,6 @@ GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...); // Provide a single constant CPP symbol that all of GTM uses for ifdefing // iPhone code. -#include <TargetConditionals.h> #if TARGET_OS_IPHONE // iPhone SDK // For iPhone specific stuff #define GTM_IPHONE_SDK 1 |