summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index 83ead0c..90a0fc9 100644
--- a/common.h
+++ b/common.h
@@ -46,6 +46,10 @@ extern enum verbose verbosity;
extern void (*mbox_vlog)(int p, const char *fmt, va_list args);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void mbox_log_console(int p, const char *fmt, va_list args);
__attribute__((format(printf, 2, 3)))
@@ -100,4 +104,8 @@ static inline bool is_power_of_2(unsigned val)
char *get_dev_mtd(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* COMMON_H */
OpenPOWER on IntegriCloud