solve duplicate symbol issue reported by Andreas Held

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-08 02:06:15 +00:00
commit c5b3ac2abd
2 changed files with 18 additions and 12 deletions

View file

@ -765,8 +765,9 @@ int Language::cDeclaration(Node *n) {
if (!isfriend ) {
/* we check what director needs. If the method is pure virtual,
it is always needed. */
if (!(directorsEnabled() && is_member_director(CurrentClass,n) && need_nonpublic_member(n)))
if (!(directorsEnabled() && Getattr(n,"director")) ) {
return SWIG_NOWRAP;
}
}
}