Re: [PATCH bpf-next v3] libbpf: make sure bpf headers are c++ include-able

2018-11-21 Thread Daniel Borkmann
On 11/21/2018 06:29 PM, Stanislav Fomichev 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 > > v3 changes: > * test_libbpf.cpp to test for possible future c++ breakages > >

[PATCH bpf-next v3] libbpf: make sure bpf headers are c++ include-able

2018-11-21 Thread Stanislav Fomichev
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 v3 changes: * test_libbpf.cpp to test for possible future c++ breakages Signed-off-by: Stanislav Fomichev --- tools/lib/bpf/Makefile