From d2a62bd5c653ddfcc87c164623c4813ed175fce5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 28 Jan 2019 10:42:02 +0100 Subject: include: add cplusplus guards for extern Signed-off-by: Pablo Neira Ayuso Acked-by: Phil Sutter --- include/nftables/libnftables.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index 70e9d238..e39c5887 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -14,6 +14,10 @@ #include #include +#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 */ -- cgit v1.2.3