Add procname to lttng_ust_statedump information
[lttng-ust.git] / include / helper.h
index 9873feadd85b020556c1cd1e4f45925094b1fdd1..a187b0e7327b2af0f3d39f1160182ad514317303 100644 (file)
@@ -55,4 +55,15 @@ void *zmalloc(size_t len)
 #define LTTNG_UST_CALLER_IP()          __builtin_return_address(0)
 #endif /* #else #if defined(__PPC__) && !defined(__PPC64__) */
 
+/*
+ * 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
+
 #endif /* _LTTNG_UST_HELPER_H */
This page took 0.022669 seconds and 4 git commands to generate.