[SPEC2DEF]

Ignore redirections for c++ symbols, since this doesn't work with link

svn path=/trunk/; revision=53197
This commit is contained in:
Timo Kreuzer 2011-08-12 11:41:35 +00:00
parent ef41655991
commit 28defeaade

View file

@ -338,10 +338,18 @@ OutputLine_def(FILE *fileDest, EXPORT *pexp)
} }
else if (pexp->pcRedirection) else if (pexp->pcRedirection)
{ {
int fDeco = ((giArch == ARCH_X86) && !ScanToken(pexp->pcRedirection, '.')); if (gbMSComp && (pexp->pcName[0] == '?'))
{
/* ignore c++ redirection, since link doesn't like that! */
}
else
{
int fDeco;
fprintf(fileDest, "="); fDeco = ((giArch == ARCH_X86) && !ScanToken(pexp->pcRedirection, '.'));
PrintName(fileDest, pexp, "", 1, fDeco && !gbMSComp); fprintf(fileDest, "=");
PrintName(fileDest, pexp, "", 1, fDeco && !gbMSComp);
}
} }
else if (((pexp->uFlags & FL_STUB) || (pexp->nCallingConvention == CC_STUB)) && else if (((pexp->uFlags & FL_STUB) || (pexp->nCallingConvention == CC_STUB)) &&
(pexp->pcName[0] == '?')) (pexp->pcName[0] == '?'))