Differences From Artifact [dbe9648eca]:
- File src/macros.h — part of check-in [7d9efc3924] at 2011-07-08 20:07:31 on branch trunk — Rename OF_PATH_DELIM to OF_PATH_DELIMITER. (user: js, size: 8615) [annotate] [blame] [check-ins using]
To Artifact [7481fee224]:
- File
src/macros.h
— part of check-in
[77fe5572fe]
at
2011-07-15 10:30:49
on branch trunk
— Make sure restrict is always defined.
This way, we also don't need -std=gnu99 in objfw-config anymore.
Fixes ObjC++, for which -std=gnu99 is invalid and where there is no
restrict. (user: js, size: 8727) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # define OF_CONST_FUNC __attribute__((const)) #else # define OF_INLINE inline # define OF_LIKELY(cond) cond # define OF_UNLIKELY(cond) cond # define OF_CONST_FUNC #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 | > > > > > > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # define OF_CONST_FUNC __attribute__((const)) #else # define OF_INLINE inline # define OF_LIKELY(cond) cond # define OF_UNLIKELY(cond) cond # define OF_CONST_FUNC #endif #if defined(__GNUC__) # define restrict __restrict__ #elif __STDC_VERSION__ < 199901L # define restrict #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 |
︙ | ︙ |