bin: compile lttng as C++
[lttng-tools.git] / src / common / error.h
index f9b2ec2f9f0d63bda4a1a1cb90c90cab39117f84..6660cee6adec9f765d8802bacfe80db44e67f954 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
@@ -264,4 +268,8 @@ const char *log_add_time(void);
 /* Name must be a statically-allocated string. */
 void logger_set_thread_name(const char *name, bool set_pthread_name);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* _ERROR_H */
This page took 0.023 seconds and 4 git commands to generate.