ObjFW  Check-in [ea5a19118a]

Overview
Comment:undef __{unsafe_unretained,bridge,autoreleasing}

Newer versions of Clang have these as built-in defines, even when ARC is
disabled.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.8
Files: files | file ages | folders
SHA3-256: ea5a19118a56c82d65537083673ff6cd229338a3ab2b7a3cc4b68227a39a6f9d
User & Date: js on 2016-03-20 10:55:31
Other Links: branch diff | manifest | tags
Context
2016-03-20
12:05
Never block when the read buffer is non-empty check-in: b84490ab4f user: js tags: 0.8
10:55
undef __{unsafe_unretained,bridge,autoreleasing} check-in: ea5a19118a user: js tags: 0.8
2016-01-03
00:44
Set version to 0.8.2 check-in: c393a213fd user: js tags: 0.8
Changes

Modified src/macros.h from [e7b0f05f6d] to [c42b7644a0].

158
159
160
161
162
163
164







165
166
167
168
169
170
171
# define OF_WEAK_UNAVAILABLE __attribute__((__objc_arc_weak_unavailable__))
#else
# define OF_RETURNS_RETAINED
# define OF_RETURNS_NOT_RETAINED
# define OF_RETURNS_INNER_POINTER
# define OF_CONSUMED
# define OF_WEAK_UNAVAILABLE







# define __unsafe_unretained
# define __bridge
# define __autoreleasing
#endif

#if __has_feature(objc_generics)
# define OF_HAVE_GENERICS







>
>
>
>
>
>
>







158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# define OF_WEAK_UNAVAILABLE __attribute__((__objc_arc_weak_unavailable__))
#else
# define OF_RETURNS_RETAINED
# define OF_RETURNS_NOT_RETAINED
# define OF_RETURNS_INNER_POINTER
# define OF_CONSUMED
# define OF_WEAK_UNAVAILABLE
/*
 * undef them first, as new Clang versions have these as built-in defines even
 * when ARC is disabled.
 */
# undef __unsafe_unretained
# undef __bridge
# undef __autoreleasing
# define __unsafe_unretained
# define __bridge
# define __autoreleasing
#endif

#if __has_feature(objc_generics)
# define OF_HAVE_GENERICS