Index: src/OFMacros.h ================================================================== --- src/OFMacros.h +++ src/OFMacros.h @@ -23,10 +23,21 @@ #else #define OF_INLINE inline #define OF_LIKELY(cond) cond #define OF_UNLIKELY(cond) cond #endif + +/* Required to build universal binaries on OS X */ +#if __BIG_ENDIAN__ || __LITTLE_ENDIAN__ +#if __BIG_ENDIAN__ && __LITTLE_ENDIAN__ +#error __BIG_ENDIAN__ and __LITTLE_ENDIAN__ defined! +#endif +#undef OF_BIG_ENDIAN +#if __BIG_ENDIAN__ +#define OF_BIG_ENDIAN +#endif +#endif #ifdef __GNUC__ #if defined(__amd64__) || defined(__x86_64__) #define OF_AMD64_ASM #elif defined(__i386__)