aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 8512fa4cb5..2968e1ac08 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -46,6 +46,10 @@
#include "epan.h"
#include "tfs.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define hi_nibble(b) (((b) & 0xf0) >> 4)
#define lo_nibble(b) ((b) & 0x0f)
@@ -402,4 +406,8 @@ extern void dissector_dump_decodes(void);
extern void register_postdissector(dissector_handle_t);
extern void call_all_postdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* packet.h */