projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing symbol to preserve ABI compatibility of liblttng-ctl
[lttng-tools.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index 1771d236c2daa3eeea5a807bef5ddc83cbb6d677..308d3d57a14d5ff9ad7911383af9f40f0477c4da 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-46,7
+46,11
@@
/*
* Memory allocation zeroed
*/
/*
* Memory allocation zeroed
*/
-#define zmalloc(x) calloc(1, x)
+static inline
+void *zmalloc(size_t len)
+{
+ return calloc(1, len);
+}
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
@@
-56,6
+60,10
@@
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif
#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
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
@@
-64,4
+72,8
@@
#define LTTNG_PACKED __attribute__((__packed__))
#endif
#define LTTNG_PACKED __attribute__((__packed__))
#endif
+#ifndef LTTNG_HIDDEN
+#define LTTNG_HIDDEN __attribute__((visibility("hidden")))
+#endif
+
#endif /* _MACROS_H */
#endif /* _MACROS_H */
This page took
0.024542 seconds
and
4
git commands to generate.