Merge branch 'externc' of https://github.com/dkodihal/libmctp
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/libmctp-serial.h b/libmctp-serial.h
index 0d3b972..68f184e 100644
--- a/libmctp-serial.h
+++ b/libmctp-serial.h
@@ -3,6 +3,10 @@
#ifndef _LIBMCTP_SERIAL_H
#define _LIBMCTP_SERIAL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "libmctp.h"
struct mctp_binding_serial;
@@ -16,4 +20,8 @@
const char *path);
void mctp_serial_open_fd(struct mctp_binding_serial *serial, int fd);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LIBMCTP_SERIAL_H */
diff --git a/libmctp.h b/libmctp.h
index 96e1076..a47eb35 100644
--- a/libmctp.h
+++ b/libmctp.h
@@ -3,6 +3,10 @@
#ifndef _LIBMCTP_H
#define _LIBMCTP_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
@@ -99,4 +103,8 @@
void *(realloc)(void *, size_t));
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LIBMCTP_H */