Overview
Comment: | Add #ifdef construct to allow building universal binaries on OS X. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3f9c30abc0d9ddba764168fbb65ff51e |
User & Date: | js on 2009-11-02 11:15:36 |
Other Links: | manifest | tags |
Context
2009-11-02
| ||
14:47 | Make use of the recent change to -[initWithCString:encoding:length:]. check-in: 581164864f user: js tags: trunk | |
11:15 | Add #ifdef construct to allow building universal binaries on OS X. check-in: 3f9c30abc0 user: js tags: trunk | |
10:18 | Update Unicode tables to those from the enhanced generator. check-in: fe8c3ac93f user: js tags: trunk | |
Changes
Modified src/OFMacros.h from [830442e230] to [266458e29f].
︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #define OF_LIKELY(cond) __builtin_expect(!!(cond), 1) #define OF_UNLIKELY(cond) __builtin_expect(!!(cond), 0) #else #define OF_INLINE inline #define OF_LIKELY(cond) cond #define OF_UNLIKELY(cond) cond #endif #ifdef __GNUC__ #if defined(__amd64__) || defined(__x86_64__) #define OF_AMD64_ASM #elif defined(__i386__) #define OF_X86_ASM #elif defined(__ppc__) || defined(__PPC__) | > > > > > > > > > > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #define OF_LIKELY(cond) __builtin_expect(!!(cond), 1) #define OF_UNLIKELY(cond) __builtin_expect(!!(cond), 0) #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__) #define OF_X86_ASM #elif defined(__ppc__) || defined(__PPC__) |
︙ | ︙ |