summaryrefslogtreecommitdiff
path: root/gcc/gcc-plugin.h
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-25 13:09:40 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-25 13:09:40 +0000
commita5096c109f1a2468a296e763f0df29b733357719 (patch)
tree9357564c5216066ceff3a63d0d5170f234449209 /gcc/gcc-plugin.h
parent3ec667ca5776abb2a3cd8f5bdd125111218cef9b (diff)
downloadgcc-a5096c109f1a2468a296e763f0df29b733357719.tar.gz
2010-01-25 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 156203 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@156208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc-plugin.h')
-rw-r--r--gcc/gcc-plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h
index ec12265417d..cbcd554ec6c 100644
--- a/gcc/gcc-plugin.h
+++ b/gcc/gcc-plugin.h
@@ -96,10 +96,16 @@ extern bool plugin_default_version_check (struct plugin_gcc_version *,
typedef int (*plugin_init_func) (struct plugin_name_args *plugin_info,
struct plugin_gcc_version *version);
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Declaration for "plugin_init" function so that it doesn't need to be
duplicated in every plugin. */
extern int plugin_init (struct plugin_name_args *plugin_info,
struct plugin_gcc_version *version);
+#ifdef __cplusplus
+}
+#endif
/* Function type for a plugin callback routine.