Author: tkreuzer
Date: Fri Aug 12 11:41:35 2011
New Revision: 53197
URL:
http://svn.reactos.org/svn/reactos?rev=53197&view=rev
Log:
[SPEC2DEF]
Ignore redirections for c++ symbols, since this doesn't work with link
Modified:
trunk/reactos/tools/spec2def/spec2def.c
Modified: trunk/reactos/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/spec2def/spec2def.c?…
==============================================================================
--- trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] Fri Aug 12 11:41:35 2011
@@ -338,10 +338,18 @@
}
else if (pexp->pcRedirection)
{
- int fDeco = ((giArch == ARCH_X86) && !ScanToken(pexp->pcRedirection,
'.'));
-
- fprintf(fileDest, "=");
- PrintName(fileDest, pexp, "", 1, fDeco && !gbMSComp);
+ if (gbMSComp && (pexp->pcName[0] == '?'))
+ {
+ /* ignore c++ redirection, since link doesn't like that! */
+ }
+ else
+ {
+ int fDeco;
+
+ fDeco = ((giArch == ARCH_X86) && !ScanToken(pexp->pcRedirection,
'.'));
+ fprintf(fileDest, "=");
+ PrintName(fileDest, pexp, "", 1, fDeco && !gbMSComp);
+ }
}
else if (((pexp->uFlags & FL_STUB) || (pexp->nCallingConvention ==
CC_STUB)) &&
(pexp->pcName[0] == '?'))