common: compile libconfig as C++
[lttng-tools.git] / src / common / error.h
index daef71fdbc90646be59ebc781131a59688ad6c0c..8bb0de15cfa70f0c621bae207932274903a65c70 100644 (file)
 #include <lttng/lttng-error.h>
 #include <common/compat/tid.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* Avoid conflict with Solaris <sys/regset.h> */
 #if defined(ERR) && defined(__sun__)
 #undef ERR
@@ -43,8 +47,8 @@ struct log_time {
        /* Format: 00:00:00.000000000 plus NULL byte. */
        char str[19];
 };
-extern DECLARE_URCU_TLS(struct log_time, error_log_time);
-extern LTTNG_HIDDEN DECLARE_URCU_TLS(const char *, logger_thread_name);
+extern LTTNG_EXPORT  DECLARE_URCU_TLS(struct log_time, error_log_time);
+extern DECLARE_URCU_TLS(const char *, logger_thread_name);
 
 extern int lttng_opt_quiet;
 extern int lttng_opt_verbose;
@@ -262,7 +266,10 @@ const char *error_get_str(int32_t code);
 const char *log_add_time(void);
 
 /* Name must be a statically-allocated string. */
-LTTNG_HIDDEN
 void logger_set_thread_name(const char *name, bool set_pthread_name);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* _ERROR_H */
This page took 0.023385 seconds and 4 git commands to generate.