aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_and_mask.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-18 18:43:30 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-18 18:43:30 +0000
commitd3db87e9b74aae837aa3094aedd9c69939778e82 (patch)
tree31dcc82b880094f7adc83befdcb58da4645cb757 /epan/addr_and_mask.h
parentead927552ff233ba0463f9a7aa8dc79db9002c5b (diff)
Put
#ifdef __cplusplus extern "C" { #endif /* __cplusplus */ ... #ifdef __cplusplus } #endif /* __cplusplus */ wrappers into some header files, for the benefit of C++ plugins. Also, add multiple-include protections. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20485 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/addr_and_mask.h')
-rw-r--r--epan/addr_and_mask.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/addr_and_mask.h b/epan/addr_and_mask.h
index 7498179ac5..849f65c6ef 100644
--- a/epan/addr_and_mask.h
+++ b/epan/addr_and_mask.h
@@ -26,6 +26,10 @@
#ifndef __ADDR_AND_MASK_H__
#define __ADDR_AND_MASK_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* These routines return PREFIX_LEN_OK on success, PREFIX_LEN_TOO_LONG if
* the prefix length is too long, and PREFIX_LEN_ZERO if the prefix length
@@ -42,4 +46,8 @@ extern int ipv4_addr_and_mask(tvbuff_t *tvb, int offset, guint8 *addr,
extern int ipv6_addr_and_mask(tvbuff_t *tvb, int offset,
struct e_in6_addr *addr, guint32 prefix_len);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __ADDR_AND_MASK_H__ */