ObjFW  Check-in [241692d895]

Overview
Comment:Check for OBJC_NEW_PROPERTIES as a fallback.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 241692d8950cfd98d0908e51285cb84313bc912e5cb2517fc1e9ce4d48db9765
User & Date: js on 2013-04-09 06:47:11
Other Links: manifest | tags
Context
2013-04-09
18:08
Add support for SjLj exceptions. check-in: 5eb22639e4 user: js tags: trunk
06:47
Check for OBJC_NEW_PROPERTIES as a fallback. check-in: 241692d895 user: js tags: trunk
2013-04-07
21:21
Fix Win32 #include hell. check-in: ec6b265428 user: js tags: trunk
Changes

Modified src/OFObject.h from [668397dc9b] to [d0848d39ae].

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# define __GCC_VERSION__ 0
#endif

#if defined(__clang__)
# define OF_HAVE_PROPERTIES
# define OF_HAVE_OPTIONAL_PROTOCOLS
# define OF_HAVE_FAST_ENUMERATION
#elif __GCC_VERSION__ >= 406
# define OF_HAVE_PROPERTIES
# define OF_HAVE_OPTIONAL_PROTOCOLS
# define OF_HAVE_FAST_ENUMERATION
#endif

#if !__has_feature(objc_instancetype)
# define instancetype id







|







54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# define __GCC_VERSION__ 0
#endif

#if defined(__clang__)
# define OF_HAVE_PROPERTIES
# define OF_HAVE_OPTIONAL_PROTOCOLS
# define OF_HAVE_FAST_ENUMERATION
#elif __GCC_VERSION__ >= 406 || defined(OBJC_NEW_PROPERTIES)
# define OF_HAVE_PROPERTIES
# define OF_HAVE_OPTIONAL_PROTOCOLS
# define OF_HAVE_FAST_ENUMERATION
#endif

#if !__has_feature(objc_instancetype)
# define instancetype id