The change to include <objc/objc-auto.h> for
objc_atomicCompareAndSwapGlobalBarrier
breaks compilation on the iPhone:
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=326
The compiler complains about the redefinition of
objc_atomicCompareAndSwapGlobalBarrier and
objc_atomicCompareAndSwapInstanceVariableBarrier which are originally defined in
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/includ
e/objc/objc
-auto.h
which is now included in all cases.
I guess these 2 definitions should be removed from GTMObjC2Runtime.h when
targeting iPhone OS
3.x (unless there's a good reason to have the custom implementations of course).
Original issue reported on code.google.com by jean.regisser on 13 Apr 2010 at 11:08
Original issue reported on code.google.com by
jean.regisser
on 13 Apr 2010 at 11:08