#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
/* Format: 00:00:00.000000000 plus NULL byte. */
char str[19];
};
-extern DECLARE_URCU_TLS(struct log_time, error_log_time);
+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;
return true;
}
-void lttng_abort_on_error(void);
+C_LINKAGE void lttng_abort_on_error(void);
static inline void __lttng_print_check_abort(enum lttng_error_level type)
{
/* 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 */