[SPEC2DEF] Implement support for private exports

This commit is contained in:
Timo Kreuzer 2020-10-23 10:31:50 +02:00
parent 00cfa8aac2
commit 0b0bb1a93b

View file

@ -730,6 +730,13 @@ OutputLine_def_GCC(FILE *fileDest, EXPORT *pexp)
int
OutputLine_def(FILE *fileDest, EXPORT *pexp)
{
/* Don't add private exports to the import lib */
if (gbImportLib && (pexp->uFlags & FL_PRIVATE))
{
DbgPrint("OutputLine_def: skipping private export '%.*s'...\n", pexp->strName.len, pexp->strName.buf);
return 1;
}
DbgPrint("OutputLine_def: '%.*s'...\n", pexp->strName.len, pexp->strName.buf);
fprintf(fileDest, " ");