mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 17:20:57 +08:00
* gcc-plugin.h (plugin_init): Use "C" likage for c++.
From-SVN: r156179
This commit is contained in:
parent
0d9709e1bf
commit
45bbb86d51
@ -14,6 +14,8 @@
|
||||
|
||||
* doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
|
||||
|
||||
* gcc-plugin.h (plugin_init): Use "C" likage for c++.
|
||||
|
||||
2010-01-21 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR tree-optimization/42585
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user