Author: tfaber
Date: Tue Aug 12 13:21:38 2014
New Revision: 63873
URL:
http://svn.reactos.org/svn/reactos?rev=63873&view=rev
Log:
[SPEC2DEF]
- In GCC builds, actually import by ordinal if -ordinal is specified. Found by Robert.
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] Tue Aug 12 13:21:38 2014
@@ -664,6 +664,10 @@
else if (CompareToken(pc, "-ordinal"))
{
exp.uFlags |= FL_ORDINAL;
+ /* GCC doesn't automatically import by ordinal if an ordinal
+ * is found in the def file. Force it. */
+ if (gbImportLib && !gbMSComp)
+ exp.uFlags |= FL_NONAME;
}
else if (CompareToken(pc, "-stub"))
{