aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/filesystem.h8
-rw-r--r--epan/plugins.h8
-rw-r--r--wsutil/privileges.h8
3 files changed, 24 insertions, 0 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index 28d3ee926a..165159218f 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -25,6 +25,10 @@
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Default profile name.
*/
@@ -295,4 +299,8 @@ extern gboolean copy_file_binary_mode(const char *from_filename,
extern char *getenv_utf8(const char *varname);
#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* FILESYSTEM_H */
diff --git a/epan/plugins.h b/epan/plugins.h
index b11c4748ec..7dee325299 100644
--- a/epan/plugins.h
+++ b/epan/plugins.h
@@ -25,6 +25,10 @@
#ifndef __PLUGINS_H__
#define __PLUGINS_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
#include <gmodule.h>
@@ -51,4 +55,8 @@ extern void register_all_plugin_tap_listeners(void);
extern void register_all_wiretap_modules(void);
extern void register_all_codecs(void);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __PLUGINS_H__ */
diff --git a/wsutil/privileges.h b/wsutil/privileges.h
index 9bb1430c94..eed160d7b6 100644
--- a/wsutil/privileges.h
+++ b/wsutil/privileges.h
@@ -25,6 +25,10 @@
#ifndef __PRIVILEGES_H__
#define __PRIVILEGES_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Called when the program starts, to enable security features and save
* whatever credential information we'll need later.
@@ -76,4 +80,8 @@ extern gchar *get_cur_groupname(void);
extern gboolean npf_sys_is_running();
#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __PRIVILEGES_H__ */