A C++ function passed to C should be declared extern "C"

This commit is contained in:
Cary R 2011-12-24 11:20:54 -08:00
parent 4b96b63166
commit 965c77525c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ int scan_scope(ivl_scope_t scope)
return 0;
}
static int child_scan_fun(ivl_scope_t scope, void*)
extern "C" int child_scan_fun(ivl_scope_t scope, void*)
{
int rc = scan_scope(scope);
return 0;