[PATCH 08/35] libfdt: add extern "C" for C++
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Dec 14 19:37:54 UTC 2021
From: Patrick Oppenlander <patrick.oppenlander at gmail.com>
Signed-off-by: Patrick Oppenlander <patrick.oppenlander at gmail.com>
Message-Id: <20200616011217.15253-1-patrick.oppenlander at gmail.com>
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
cpukit/include/libfdt.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cpukit/include/libfdt.h b/cpukit/include/libfdt.h
index 48f375c9c1..544d3efff5 100644
--- a/cpukit/include/libfdt.h
+++ b/cpukit/include/libfdt.h
@@ -9,6 +9,10 @@
#include <libfdt_env.h>
#include <fdt.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define FDT_FIRST_SUPPORTED_VERSION 0x02
#define FDT_LAST_SUPPORTED_VERSION 0x11
@@ -2069,4 +2073,8 @@ int fdt_overlay_apply(void *fdt, void *fdto);
const char *fdt_strerror(int errval);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBFDT_H */
--
2.31.1
More information about the devel
mailing list