ObjFW  Check-in [d62ec447d0]

Overview
Comment:Make OF_DEPRECATED work with Apple GCC 4.0.1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d62ec447d08ced480622f66a4795a020d0e40a820ffbf371fe7eb31bf092c23b
User & Date: js on 2023-10-26 20:05:26
Other Links: manifest | tags
Context
2023-10-28
17:05
Move x86/Mach-O assembly to Intel syntax check-in: 54ee8929f0 user: js tags: trunk
2023-10-26
20:05
Make OF_DEPRECATED work with Apple GCC 4.0.1 check-in: d62ec447d0 user: js tags: trunk
19:42
Make headers compatible with -masm=intel check-in: a1ab43e0b3 user: js tags: trunk
Changes

Modified src/macros.h from [36c9f66b6e] to [d9f6837658].

288
289
290
291
292
293
294
295

296
297
298



299
300
301
302
303
304
305
288
289
290
291
292
293
294

295
296
297
298
299
300
301
302
303
304
305
306
307
308







-
+



+
+
+







#if __has_attribute(__objc_designated_initializer__)
# define OF_DESIGNATED_INITIALIZER \
    __attribute__((__objc_designated_initializer__))
#else
# define OF_DESIGNATED_INITIALIZER
#endif

#ifdef __GNUC__
#if defined(__clang__) || OF_GCC_VERSION >= 405
# define OF_DEPRECATED(project, major, minor, msg)		\
    __attribute__((__deprecated__("Deprecated in " #project " "	\
    #major "." #minor ": " msg)))
#elif defined(__GNUC__)
# define OF_DEPRECATED(project, major, minor, msg) \
    __attribute__((__deprecated__))
#else
# define OF_DEPRECATED(project, major, minor, msg)
#endif

#if __has_attribute(__objc_boxable__)
# define OF_BOXABLE __attribute__((__objc_boxable__))
#else