From d4f38903d60f8b01c419f5056c2fb3cd4c6c6e60 Mon Sep 17 00:00:00 2001 From: "thomasvl@gmail.com" Date: Thu, 5 Mar 2009 21:31:38 +0000 Subject: - allow target_os_iphone to be defined to zero (like some new headers do). - move the include of system headers up for safety. --- GTMDefines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GTMDefines.h') diff --git a/GTMDefines.h b/GTMDefines.h index 5012e49..b88193c 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -19,6 +19,7 @@ // ============================================================================ #include +#include // 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 #if TARGET_OS_IPHONE // iPhone SDK // For iPhone specific stuff #define GTM_IPHONE_SDK 1 -- cgit v1.2.3