aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMObjC2Runtime.h
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-20 20:00:41 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-20 20:00:41 +0000
commitfe8a34f1515ffad41dac45e90a3b2096cc5699df (patch)
tree1cbebdacc06c969c28a15345182728c2f48bd0e7 /Foundation/GTMObjC2Runtime.h
parentcc6fc10bc9d001abb200449d311e8f8b8e176647 (diff)
[Author: thomasvl]
Added Xcode configs for iPhone 2.2, 2.2.1, 3.0, 3.1, 3.1.2. Updated the GTMiPhone project to have multiple config support. Updated the helper script to handle all the iPhone configs also. Left the generic configs in for now until the automated builds are updated. Updated one issues with the atomic ops and iphone 3+ sdks. R=dmaclach DELTA=1413 (1397 added, 0 deleted, 16 changed)
Diffstat (limited to 'Foundation/GTMObjC2Runtime.h')
-rw-r--r--Foundation/GTMObjC2Runtime.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Foundation/GTMObjC2Runtime.h b/Foundation/GTMObjC2Runtime.h
index 9f5afa0..3671381 100644
--- a/Foundation/GTMObjC2Runtime.h
+++ b/Foundation/GTMObjC2Runtime.h
@@ -91,7 +91,10 @@ GTM_INLINE bool OSAtomicCompareAndSwapPtrBarrier(void *predicate,
#endif // MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
#endif // MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
-#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || (GTM_IPHONE_DEVICE)
+#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) \
+ || (GTM_IPHONE_DEVICE) \
+ || (defined(__IPHONE_3_0) \
+ && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_3_0))
GTM_INLINE BOOL objc_atomicCompareAndSwapGlobalBarrier(id predicate,
id replacement,
@@ -107,4 +110,4 @@ GTM_INLINE BOOL objc_atomicCompareAndSwapInstanceVariableBarrier(id predicate,
replacement,
(void * volatile *)objectLocation);
}
-#endif // (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || (GTM_IPHONE_DEVICE)
+#endif // (OS_MIN > 10.5) || (GTM_IPHONE_DEVICE) || (IPHONE_MIN > 3.0)