1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef BASE_MACROS_HH #define BASE_MACROS_HH #if defined(HAVE_ATTRIBUTE_VISIBILITY_HIDDEN) # define HIDDEN __attribute__((visibility ("hidden"))) #else # define HIDDEN #endif #if defined(HAVE_ATTRIBUTE_UNLIKELY) # define UNLIKELY [[unlikely]] #else # define UNLIKELY #endif #endif // BASE_MACROS_HH