aboutsummaryrefslogtreecommitdiffstats
path: root/epan/expert.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-02-01 21:03:29 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-02-01 21:03:29 +0000
commit793eee70d0496614d524a688f5ad140ec61d5b07 (patch)
treeb862c5bdd62df1e026af559ccbae9fdd7d551481 /epan/expert.h
parentce2a2e50e6e7262214cc6fb6e0dad28f831f0f06 (diff)
From John Thacker via bug #5644: Can't include expert.h in C++ code
svn path=/trunk/; revision=35742
Diffstat (limited to 'epan/expert.h')
-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__ */