ObjFW  Check-in [826c9570d3]

Overview
Comment:macros.h: Adjust a comment

This was not limited to Android, but also happens with newer versions of
Clang on all platforms.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 826c9570d36fc1434e34772252de56f714bcd1dbc90e8c87bec4806ae442800e
User & Date: js on 2016-03-20 10:53:55
Other Links: manifest | tags
Context
2016-03-20
11:57
Never block when the read buffer is non-empty check-in: 7ae17af9f0 user: js tags: trunk
10:53
macros.h: Adjust a comment check-in: 826c9570d3 user: js tags: trunk
2016-03-19
21:45
Add tests.3dsx to .gitignore check-in: b64214c943 user: js tags: trunk
Changes

Modified src/macros.h from [f5907cb050] to [207b43dc6a].

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#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 it seems Clang has these as built-in defines for some
 * platforms, even when ARC is disabled (at least it does when cross-compiling
 * for Android).
 */
# undef __unsafe_unretained
# undef __bridge
# undef __autoreleasing
# define __unsafe_unretained
# define __bridge
# define __autoreleasing







|
|
<







140
141
142
143
144
145
146
147
148

149
150
151
152
153
154
155
#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