* [PATCH] libfdt: add extern "C" for C++
@ 2020-06-16 1:12 patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <20200616011217.15253-1-patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w @ 2020-06-16 1:12 UTC (permalink / raw)
To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA; +Cc: Patrick Oppenlander
From: Patrick Oppenlander <patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Signed-off-by: Patrick Oppenlander <patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
libfdt/libfdt.h | 8 ++++++++
1 file changed, 8 insertions(+)
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 */
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libfdt: add extern "C" for C++
[not found] ` <20200616011217.15253-1-patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2020-06-18 23:53 ` David Gibson
0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2020-06-18 23:53 UTC (permalink / raw)
To: patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w
Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]
On Tue, Jun 16, 2020 at 11:12:17AM +1000, patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> From: Patrick Oppenlander <patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
> Signed-off-by: Patrick Oppenlander <patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Applied, thanks.
> ---
> libfdt/libfdt.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> 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 */
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-18 23:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16 1:12 [PATCH] libfdt: add extern "C" for C++ patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <20200616011217.15253-1-patrick.oppenlander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-06-18 23:53 ` David Gibson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).