diff options
author | Patrick Oppenlander <patrick.oppenlander@gmail.com> | 2020-06-16 11:12:17 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-06-19 09:52:41 +1000 |
commit | 2478b1652c8d39ce7921cda83eaba9c86cadbd36 (patch) | |
tree | 97ace66fe9e48c65c86d4382a53cd9b10518e127 | |
parent | f68bfc2668b2e090b5b2f55cce93aad42fb08c6c (diff) | |
download | dtc-2478b1652c8d39ce7921cda83eaba9c86cadbd36.tar.gz |
libfdt: add extern "C" for C++
Signed-off-by: Patrick Oppenlander <patrick.oppenlander@gmail.com>
Message-Id: <20200616011217.15253-1-patrick.oppenlander@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | libfdt/libfdt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h index 48f375c..544d3ef 100644 --- a/libfdt/libfdt.h +++ b/libfdt/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 */ |