aboutsummaryrefslogtreecommitdiff
path: root/src/util/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/log.h')
-rw-r--r--src/util/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/log.h b/src/util/log.h
index 01010a60..09b6d5ae 100644
--- a/src/util/log.h
+++ b/src/util/log.h
@@ -151,6 +151,10 @@ static log_level LOGMODULE_status COMPILER_ATTR(unused) = LOGLEVEL_UNDEFINED;
#define LOGBLOB_TRACE(FORMAT, ...) {}
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void
doLog(log_level loglevel, const char *module, log_level logdefault,
log_level *status,
@@ -165,4 +169,8 @@ doLogBlob(log_level loglevel, const char *module, log_level logdefault,
const uint8_t *buffer, size_t size, const char *msg, ...)
COMPILER_ATTR(unused, format (printf, 10, 11));
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif /* LOG_H */