X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=f6f975d1453d7ffa89deb2e4e97f55afafee514c;hb=45893984238b2e2c12fc0d84b90336c98a6d98c9;hp=81f901c2d5d171bda6a6f064124d8c49bbf76944;hpb=cf3f19ae5f634bf07dcdb771e66d40f805700a17;p=lttng-tools.git diff --git a/src/common/macros.h b/src/common/macros.h index 81f901c2d..f6f975d14 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -60,4 +60,12 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) #endif +#ifndef LTTNG_PACKED +#define LTTNG_PACKED __attribute__((__packed__)) +#endif + +#ifndef LTTNG_HIDDEN +#define LTTNG_HIDDEN __attribute__((visibility("hidden"))) +#endif + #endif /* _MACROS_H */