diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-01-28 10:42:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-01-28 14:45:45 +0100 |
commit | d2a62bd5c653ddfcc87c164623c4813ed175fce5 (patch) | |
tree | 1081054bfcf57417606596e8995ab494f5e8cb97 | |
parent | 512795a673f999fb04b84dbbbe41174e9c581430 (diff) |
include: add cplusplus guards for extern
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | include/nftables/libnftables.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <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 */ |