Differences From Artifact [d0b36af00e]:
- File src/OFObject.h — part of check-in [7239333455] at 2012-10-03 15:41:10 on branch trunk — Move definition of restricted to OFObject.h. (user: js, size: 23170) [annotate] [blame] [check-ins using]
To Artifact [5242dae164]:
- File
src/OFObject.h
— part of check-in
[2edae50b86]
at
2012-10-03 15:47:15
on branch trunk
— Move ObjC feature checks to OFObject.h.
This way, it is theoretically possible to compile ObjFW with one
compiler and then use it with another. (user: js, size: 23550) [annotate] [blame] [check-ins using]
︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | + + + + + + + + + + + + + + + + | #elif __STDC_VERSION__ < 199901L # define restrict #endif #ifndef __has_feature # define __has_feature(x) 0 #endif #if defined(__clang__) # define OF_HAVE_PROPERTIES # define OF_HAVE_OPTIONAL_PROTOCOLS # define OF_HAVE_FAST_ENUMERATION #elif defined(__GNUC__) # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) # define OF_HAVE_PROPERTIES # define OF_HAVE_OPTIONAL_PROTOCOLS # define OF_HAVE_FAST_ENUMERATION # endif #endif #if __has_feature(blocks) # define OF_HAVE_BLOCKS #endif #if __has_feature(objc_bool) # undef YES # define YES __objc_yes # undef NO # define NO __objc_no #endif |
︙ |