Index: src/macros.h ================================================================== --- src/macros.h +++ src/macros.h @@ -97,22 +97,22 @@ # 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)