ObjFW  Check-in [2b682c724d]

Overview
Comment:Only use OF_VISIBILITY_HIDDEN with ELF and Mach-O
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2b682c724ddded1fd51022ee688d3d61cb687b80fa581eaaf2e328a9f92f2885
User & Date: js on 2024-11-03 15:55:39
Other Links: manifest | tags
Context
2024-11-03
15:56
GitHub Actions: Add MinGW with GCC on Fedora check-in: a77bb2825d user: js tags: trunk
15:55
Only use OF_VISIBILITY_HIDDEN with ELF and Mach-O check-in: 2b682c724d user: js tags: trunk
15:46
ObjFWHID: Properly hide private methods check-in: bc3a7747d9 user: js tags: trunk
Changes

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

95
96
97
98
99
100
101
102

103
104
105
106
107
108
109
95
96
97
98
99
100
101

102
103
104
105
106
107
108
109







-
+







#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
# if defined(OF_ELF) || defined(OF_MACHO)
#  define OF_VISIBILITY_HIDDEN __attribute__((__visibility__("hidden")))
# else
#  define OF_VISIBILITY_HIDDEN
# endif
#else
# define OF_INLINE inline
# define OF_LIKELY(cond) (cond)