X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=fc159c0af3c707102d7bb853a49360d16e01c1d1;hp=1771d236c2daa3eeea5a807bef5ddc83cbb6d677;hb=331744e34f56a5aec69b05d356d6901e67926acc;hpb=54c90d10655e559818665234f29d5d01c8640ee7 diff --git a/src/common/macros.h b/src/common/macros.h index 1771d236c..fc159c0af 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -56,6 +56,10 @@ #define max(a, b) ((a) > (b) ? (a) : (b)) #endif +#ifndef max_t +#define max_t(type, a, b) ((type) max(a, b)) +#endif + #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif @@ -64,4 +68,8 @@ #define LTTNG_PACKED __attribute__((__packed__)) #endif +#ifndef LTTNG_HIDDEN +#define LTTNG_HIDDEN __attribute__((visibility("hidden"))) +#endif + #endif /* _MACROS_H */