[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRVQaov9C1N7=W=EWXOnAGi6DE+H5L+wqGecbH5vuEOn4A@mail.gmail.com>
Date: Tue, 20 Nov 2018 14:11:24 -0800
From: Y Song <ys114321@...il.com>
To: Stanislav Fomichev <sdf@...gle.com>
Cc: netdev <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>
Subject: Re: [PATCH bpf-next v2] libbpf: make sure bpf headers are c++ include-able
On Tue, Nov 20, 2018 at 1:37 PM Stanislav Fomichev <sdf@...gle.com> wrote:
>
> Wrap headers in extern "C", to turn off C++ mangling.
> This simplifies including libbpf in c++ and linking against it.
>
> v2 changes:
> * do the same for btf.h
>
> Signed-off-by: Stanislav Fomichev <sdf@...gle.com>
Acked-by: Yonghong Song <yhs@...com>
> ---
> tools/lib/bpf/bpf.h | 9 +++++++++
> tools/lib/bpf/btf.h | 8 ++++++++
> tools/lib/bpf/libbpf.h | 9 +++++++++
> 3 files changed, 26 insertions(+)
Powered by blists - more mailing lists