Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- include/nftables/libnftables.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index 70e9d238843a..e39c588769e2 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -14,6 +14,10 @@ #include <stdio.h> #include <stdbool.h> +#ifdef __cplusplus +extern "C" { +#endif + struct nft_ctx; enum nft_debug_level { @@ -75,4 +79,8 @@ void nft_ctx_clear_include_paths(struct nft_ctx *ctx); int nft_run_cmd_from_buffer(struct nft_ctx *nft, const char *buf); int nft_run_cmd_from_filename(struct nft_ctx *nft, const char *filename); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* LIB_NFTABLES_H */ -- 2.11.0