aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-01-13 17:39:54 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-01-13 17:39:54 +0000
commit4c1b59c9896d24ba9a6d7cbb9eff0d80fec584c7 (patch)
tree57298e7aad39bbf13ff0ee42ead1288c2a9e767f /globals.h
parenta345695daf0e72429d035e14241f620bbffd42a0 (diff)
Wrap include file in extern "C" { ... } for __cplusplus
svn path=/trunk/; revision=35521
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/globals.h b/globals.h
index d920fba1a2..0e6c6bbf82 100644
--- a/globals.h
+++ b/globals.h
@@ -25,6 +25,10 @@
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include "file.h"
#include <epan/timestamp.h>
@@ -34,4 +38,8 @@ extern capture_file cfile;
extern gboolean auto_scroll_live;
#endif
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __GLOBALS_H__ */