Index: src/macros.h ================================================================== --- src/macros.h +++ src/macros.h @@ -141,10 +141,18 @@ # define OF_RETURNS_RETAINED # define OF_RETURNS_NOT_RETAINED # define OF_RETURNS_INNER_POINTER # define OF_CONSUMED # define OF_WEAK_UNAVAILABLE +/* + * undef them first, as it seems Clang has these as built-in defines for some + * platforms, even when ARC is disabled (at least it does when cross-compiling + * for Android). + */ +# undef __unsafe_unretained +# undef __bridge +# undef __autoreleasing # define __unsafe_unretained # define __bridge # define __autoreleasing #endif