1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Relaxed condition on matching of extern "C" functions.

This commit is contained in:
Sergey Prigogin 2013-09-20 11:14:11 -07:00
parent cb89037f22
commit 6791f19c41

View file

@ -246,7 +246,8 @@ public class ASTManager implements IDisposable {
return FALSE;
}
isStatic= c1.isStatic() || c2.isStatic();
if (!(b1 instanceof ICPPFunction) && !(b2 instanceof ICPPFunction)) {
if ((!(b1 instanceof ICPPFunction) || ((ICPPFunction) b1).isExternC()) &&
(!(b2 instanceof ICPPFunction) || ((ICPPFunction) b2).isExternC())) {
checkSig= false;
}
}