[SPEC2DEF]

- Do not include an export's ordinal in the .def file for the import lib unless import by ordinal is intended (via -noname or -ordinal). MSVC will always import by ordinal if it finds one in the def file, which would break apps on different versions of Windows if applied to the wrong functions.

svn path=/trunk/; revision=63664
This commit is contained in:
Thomas Faber 2014-06-29 11:32:49 +00:00
parent aa3b023aa4
commit 420285a3c0

View file

@ -569,7 +569,9 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
else
{
exp.nOrdinal = atol(pc);
exp.uFlags |= FL_ORDINAL;
/* The import lib should contain the ordinal only if -ordinal was specified */
if (!gbImportLib)
exp.uFlags |= FL_ORDINAL;
}
/* Go to next token (type) */