Re: [PATCH] libfdt: add extern "C" for C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Jun 16, 2020 at 11:12:17AM +1000, patrick.oppenlander@xxxxxxxxx wrote:
> From: Patrick Oppenlander <patrick.oppenlander@xxxxxxxxx>
> 
> Signed-off-by: Patrick Oppenlander <patrick.oppenlander@xxxxxxxxx>

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: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux