ObjFW  Check-in [d6fa7f9bf6]

Overview
Comment:Rename __GCC_VERSION__ to OF_GCC_VERSION

__GCC_VERSION__ is reserved and could be used by GCC in the future.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: d6fa7f9bf682eba531dd0009279e577af64be90c317db9b360afa7e851194e9d
User & Date: js on 2017-10-15 22:51:14
Other Links: branch diff | manifest | tags
Context
2017-10-17
21:04
OFMutableSet: Add missing override for -[copy] check-in: 3677275df7 user: js tags: 0.90
2017-10-15
22:51
Rename __GCC_VERSION__ to OF_GCC_VERSION check-in: d6fa7f9bf6 user: js tags: 0.90
2017-10-14
18:53
Fix more shadowed variables check-in: a54fb211ea user: js tags: 0.90
Changes

Modified src/macros.h from [aa4d0729bb] to [62a0be4bea].

104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# else
#  /* Hopefully no arch needs more than 16 byte alignment */
#  define OF_BIGGEST_ALIGNMENT 16
# endif
#endif

#ifdef __GNUC__
# define __GCC_VERSION__ (__GNUC__ * 100 + __GNUC_MINOR__)
#else
# define __GCC_VERSION__ 0
#endif

#ifndef __has_feature
# define __has_feature(x) 0
#endif

#ifndef __has_attribute







|

|







104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# else
#  /* Hopefully no arch needs more than 16 byte alignment */
#  define OF_BIGGEST_ALIGNMENT 16
# endif
#endif

#ifdef __GNUC__
# define OF_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
#else
# define OF_GCC_VERSION 0
#endif

#ifndef __has_feature
# define __has_feature(x) 0
#endif

#ifndef __has_attribute
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

#if __has_feature(objc_kindof)
# define OF_KINDOF(cls) __kindof cls
#else
# define OF_KINDOF(cls) id
#endif

#if defined(__clang__) || __GCC_VERSION__ >= 405
# define OF_UNREACHABLE __builtin_unreachable();
#else
# define OF_UNREACHABLE abort();
#endif

#if defined(__clang__) || __GCC_VERSION__ >= 406
# define OF_SENTINEL __attribute__((__sentinel__))
# define OF_NO_RETURN __attribute__((__noreturn__))
#else
# define OF_SENTINEL
# define OF_NO_RETURN
#endif








|





|







194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

#if __has_feature(objc_kindof)
# define OF_KINDOF(cls) __kindof cls
#else
# define OF_KINDOF(cls) id
#endif

#if defined(__clang__) || OF_GCC_VERSION >= 405
# define OF_UNREACHABLE __builtin_unreachable();
#else
# define OF_UNREACHABLE abort();
#endif

#if defined(__clang__) || OF_GCC_VERSION >= 406
# define OF_SENTINEL __attribute__((__sentinel__))
# define OF_NO_RETURN __attribute__((__noreturn__))
#else
# define OF_SENTINEL
# define OF_NO_RETURN
#endif