extern const char *tracing_group_name;
/*
- * This function is dlsym-ed from a test, making it have a C linkage name
- * makes it easier.
+ * This function is dlsym-ed from a test, so needs to be exported. Making it
+ * have a C linkage name makes it easier, as it avoids having to look up a
+ * mangled name.
*/
-extern "C" enum lttng_consumer_type lttng_consumer_get_type();
+extern "C" LTTNG_EXPORT
+enum lttng_consumer_type lttng_consumer_get_type();
#endif /* _LTTNG_CONSUMERD_H */