Wrap include file in extern "C" { ... } for __cplusplus
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Jan 2011 17:39:54 +0000 (17:39 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 13 Jan 2011 17:39:54 +0000 (17:39 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35521 f5534014-38df-0310-8fa8-9805f1628bb7

globals.h

index d920fba1a25417a650fda4eb859194a71c964c80..0e6c6bbf82362215aa967dca9dffdbdd243af26f 100644 (file)
--- a/globals.h
+++ b/globals.h
 #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__ */