HomeFreeBSD

libcasper(3): Export functions to C++

Description

libcasper(3): Export functions to C++

We must wrap C declarations in BEGIN / END_DECLS to avoid C++ name-mangling
of the declaration when including the C header; name-mangling causes the linker
to attempt to locate the wrong (C++ ABI) symbol name.

Reviewed by: markj, oshogbo (earlier version both)
Differential Revision: https://reviews.freebsd.org/D24323

Details

Provenance
cemAuthored on
Reviewer
markj
Differential Revision
D24323: casper: Export functions to C++
Parents
rS359695: MFC r357092,357787: Add support for RFC 6598/Carrier Grade NAT subnets
Branches
Unknown
Tags
Unknown