[SPEC2DEF]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 12 Aug 2014 13:21:38 +0000 (13:21 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 12 Aug 2014 13:21:38 +0000 (13:21 +0000)
- In GCC builds, actually import by ordinal if -ordinal is specified. Found by Robert.

svn path=/trunk/; revision=63873

reactos/tools/spec2def/spec2def.c

index 2b79693..11a7862 100644 (file)
@@ -664,6 +664,10 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
             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"))
             {