ObjFW  Check-in [fabf1c6984]

Overview
Comment:Make sure OF_VISIBILITY_HIDDEN is always defined
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fabf1c69849d572d7cfe34118a9c150713909e1c9735347ea020e6ce345d2925
User & Date: js on 2024-11-02 23:33:37
Other Links: manifest | tags
Context
2024-11-03
01:04
Skip OFSCTPSocketTests when running in qemu-user check-in: 077ec3efdd user: js tags: trunk
2024-11-02
23:33
Make sure OF_VISIBILITY_HIDDEN is always defined check-in: fabf1c6984 user: js tags: trunk
23:32
Fix minor space errors and typos check-in: fa0f45f5f8 user: js tags: trunk
Changes

Modified src/macros.h from [f36695b45c] to [5eb6f07bd0].

95
96
97
98
99
100
101





102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113





114
115
116
117
118
119
120







+
+
+
+
+







-
-
-
-
-







#ifdef __GNUC__
# define OF_INLINE inline __attribute__((__always_inline__))
# define OF_LIKELY(cond) (__builtin_expect(!!(cond), 1))
# define OF_UNLIKELY(cond) (__builtin_expect(!!(cond), 0))
# define OF_CONST_FUNC __attribute__((__const__))
# define OF_NO_RETURN_FUNC __attribute__((__noreturn__))
# define OF_WEAK_REF(sym) __attribute__((__weakref__(sym)))
# ifndef OF_DJGPP
#  define OF_VISIBILITY_HIDDEN __attribute__((__visibility__("hidden")))
# else
#  define OF_VISIBILITY_HIDDEN
# endif
#else
# define OF_INLINE inline
# define OF_LIKELY(cond) (cond)
# define OF_UNLIKELY(cond) (cond)
# define OF_CONST_FUNC
# define OF_NO_RETURN_FUNC
# define OF_WEAK_REF(sym)
#endif

#ifndef OF_DJGPP
# define OF_VISIBILITY_HIDDEN __attribute__((__visibility__("hidden")))
#else
# define OF_VISIBILITY_HIDDEN
#endif

#if __STDC_VERSION__ >= 201112L
# define OF_ALIGN(size) _Alignas(size)
# define OF_ALIGNOF(type) _Alignof(type)
# define OF_ALIGNAS(type) _Alignas(type)