aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-01 21:03:29 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-01 21:03:29 +0000
commit1d6644d677424b03d80410cc1c36874e334375f8 (patch)
treeb862c5bdd62df1e026af559ccbae9fdd7d551481
parent40b4165e8259f7d9f00a57b377c45f966894c772 (diff)
From John Thacker via bug #5644: Can't include expert.h in C++ code
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35742 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--epan/expert.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/expert.h b/epan/expert.h
index 9afc9cca5f..62d5ba98ff 100644
--- a/epan/expert.h
+++ b/epan/expert.h
@@ -30,6 +30,9 @@
#include <epan/proto.h>
#include "value_string.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
/** only for internal and display use. */
typedef struct expert_info_s {
@@ -66,4 +69,8 @@ expert_add_info_format(packet_info *pinfo, proto_item *pi, int group,
int severity, const char *format, ...)
G_GNUC_PRINTF(5, 6);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __EXPERT_H__ */