forthenature / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

r326 breaks compilation with iPhone SDK 3.x #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by thoma...@gmail.com on 13 Apr 2010 at 12:48