From 1759d7ec38637e1eaf009619f463d6b121e23502 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 18 Mar 2015 20:58:25 +0100 Subject: Support linking libipset to C++ programs Issue reported by Pavel Odintsov. --- include/libipset/icmp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libipset/icmp.h') diff --git a/include/libipset/icmp.h b/include/libipset/icmp.h index e27fd4a..914b5e8 100644 --- a/include/libipset/icmp.h +++ b/include/libipset/icmp.h @@ -9,8 +9,16 @@ #include /* uintxx_t */ +#ifdef __cplusplus +extern "C" { +#endif + extern const char *id_to_icmp(uint8_t id); extern const char *icmp_to_name(uint8_t type, uint8_t code); extern int name_to_icmp(const char *str, uint16_t *typecode); +#ifdef __cplusplus +} +#endif + #endif /* LIBIPSET_ICMP_H */ -- cgit v1.2.3