Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -763,10 +763,16 @@ -o x"$enable_shared" = x"no"], [ AC_SUBST(OBJFW_BRIDGE_STATIC_LIB, "libobjfw-bridge.a") ]) ]) ]) + +case "$host" in + arm-apple-darwin*) + AC_DEFINE(OF_IOS, 1, [Whether we compile for iOS]) + ;; +esac AS_IF([test x"$GOBJC" = x"yes"], [ OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror" AC_MSG_CHECKING(whether we have gcc bug objc/27438) Index: src/macros.h ================================================================== --- src/macros.h +++ src/macros.h @@ -331,18 +331,10 @@ # define OF_BSWAP_DOUBLE_IF_BE(i) (i) # define OF_BSWAP_FLOAT_IF_LE(i) OF_BSWAP_FLOAT(i) # define OF_BSWAP_DOUBLE_IF_LE(i) OF_BSWAP_DOUBLE(i) #endif -/* - * We define it here and not in objfw-defs.h, as it would be theoretically - * possible to build a universal binary for Mac OS X and iOS. - */ -#if defined(__APPLE__) && defined(__arm__) -# define OF_IOS -#endif - #define OF_ROL(value, bits) \ (((value) << ((bits) % (sizeof(value) * 8))) | \ ((value) >> (sizeof(value) * 8 - ((bits) % (sizeof(value) * 8))))) #define OF_ROR(value, bits) \ (((value) >> ((bits) % (sizeof(value) * 8))) | \