ObjFW  Check-in [76e53b2e72]

Overview
Comment:Disable fast enumeration for Apple GCC + ObjFW RT.

Apple's GCC seems to only support fast enumeration for the Apple
runtime, as the compiler crashes when trying to use fast enumeration
with the ObjFW runtime.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 76e53b2e72b5358c0f68d2204388d8cbb774b92598def127dc31c4367e1dbac0
User & Date: js on 2014-01-18 22:27:35
Other Links: manifest | tags
Context
2014-01-19
12:00
Add lookup-asm-ppc-macho.S. check-in: d80d091b0e user: js tags: trunk
2014-01-18
22:27
Disable fast enumeration for Apple GCC + ObjFW RT. check-in: 76e53b2e72 user: js tags: trunk
17:59
objfw-config: Return 1 when flags are missing. check-in: 4282d03eda user: js tags: trunk
Changes

Modified src/OFObject.h from [1fca43414f] to [a20b25debb].

60
61
62
63
64
65
66

67

68
69
70
71
72
73
74
#else
# define __GCC_VERSION__ 0
#endif

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

# define OF_HAVE_FAST_ENUMERATION

# define OF_HAVE_CLASS_EXTENSIONS
#endif

#if !__has_feature(objc_instancetype)
# define instancetype id
#endif








>
|
>







60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#else
# define __GCC_VERSION__ 0
#endif

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

#if !__has_feature(objc_instancetype)
# define instancetype id
#endif