From b6b43b5decea1d19920aced5c89bdd6bb0722ad4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 12 May 2010 17:06:46 -0700 Subject: [PATCH] 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". --- tgt-vhdl/vhdl_target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vhdl/vhdl_target.h b/tgt-vhdl/vhdl_target.h index a70980493..8d99d97a1 100644 --- a/tgt-vhdl/vhdl_target.h +++ b/tgt-vhdl/vhdl_target.h @@ -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);