C++ functions passed to C should be declared extern "C" (second patch)

The SunPro compiler was complaining about C++ routines that
were being passed to the ivl C routines if the C++ routines
were not declared extern "C".
This commit is contained in:
Cary R 2010-05-12 17:06:46 -07:00 committed by Stephen Williams
parent dd33d25e3c
commit b6b43b5dec
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ void error(const char *fmt, ...);
void debug_msg(const char *fmt, ...);
int draw_scope(ivl_scope_t scope, void *_parent);
int draw_process(ivl_process_t net, void *cd);
extern "C" int draw_process(ivl_process_t net, void *cd);
int draw_stmt(vhdl_procedural *proc, stmt_container *container,
ivl_statement_t stmt, bool is_last = false);
int draw_lpm(vhdl_arch *arch, ivl_lpm_t lpm);