https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0b0bb1a93ba6d373f37d5…
commit 0b0bb1a93ba6d373f37d5ef59b6e504f472d29b2
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri Oct 23 10:31:50 2020 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Nov 7 18:40:03 2020 +0100
[SPEC2DEF] Implement support for private exports
---
sdk/tools/spec2def/spec2def.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sdk/tools/spec2def/spec2def.c b/sdk/tools/spec2def/spec2def.c
index a7b67b8d239..9fc4d8cda45 100644
--- a/sdk/tools/spec2def/spec2def.c
+++ b/sdk/tools/spec2def/spec2def.c
@@ -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, " ");