1#import <Foundation/Foundation.h> 2 3#if TARGET_RT_BIG_ENDIAN 4#define FourCC2Str(fourcc) (const char[]) { *((char *) &fourcc), *(((char *) &fourcc) + 1), *(((char *) &fourcc) + 2), *(((char *) &fourcc) + 3), 0} 5#else 6#define FourCC2Str(fourcc) (const char[]) { *(((char *) &fourcc) + 3), *(((char *) &fourcc) + 2), *(((char *) &fourcc) + 1), *(((char *) &fourcc) + 0), 0} 7#endif 8 9#if 1 10#define SYNCHRONIZED_BEGIN(x) @synchronized(x) { 11#define SYNCHRONIZED_END } 12#else 13#define SYNCHRONIZED_BEGIN(x) 14#define SYNCHRONIZED_END 15#endif 16 17#define AUTORELEASEPOOL_BEGIN @autoreleasepool { 18#define AUTORELEASEPOOL_END } 19