diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-03-18 20:58:25 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-03-18 20:58:25 +0100 |
commit | 1759d7ec38637e1eaf009619f463d6b121e23502 (patch) | |
tree | faaaaafb626ff0bbfd4c21fc951c5d7e590edbee /include/libipset/icmp.h | |
parent | 09812a4873f044d3597b990c77be9d608285b930 (diff) |
Support linking libipset to C++ programs
Issue reported by Pavel Odintsov.
Diffstat (limited to 'include/libipset/icmp.h')
-rw-r--r-- | include/libipset/icmp.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdint.h> /* 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 */ |