X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;fp=src%2Fcommon%2Fmacros.h;h=97faf03280925fc3503a9ddb6d348093c07c1501;hp=2b16e5b68a42fe073b22904f8f645b465efd046a;hb=ca806b0b247f89c62ac628a7779ae84049a8c2d7;hpb=a4705d55c62276cb913c64832f383e27aa72668b 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))