X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=97faf03280925fc3503a9ddb6d348093c07c1501;hb=c30417c11fcaf0406c4cfb3a09373c848a86e291;hp=2b16e5b68a42fe073b22904f8f645b465efd046a;hpb=a0377dfefe40662ba7d68617bce6ff467114136c;p=lttng-tools.git diff --git a/src/common/macros.h b/src/common/macros.h index 2b16e5b68..97faf0328 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -93,17 +93,6 @@ void *zmalloc(size_t len) */ #define ALIGN_TO(value, align) ((value + (align - 1)) & ~(align - 1)) -/* - * LTTNG_HIDDEN: set the hidden attribute for internal functions - * On Windows, symbols are local unless explicitly exported, - * see https://gcc.gnu.org/wiki/Visibility - */ -#if defined(_WIN32) || defined(__CYGWIN__) -#define LTTNG_HIDDEN -#else -#define LTTNG_HIDDEN __attribute__((visibility("hidden"))) -#endif - #define member_sizeof(type, field) sizeof(((type *) 0)->field) #define ASSERT_LOCKED(lock) LTTNG_ASSERT(pthread_mutex_trylock(&lock))