gendef: Write comments also for ordinal-only symbols
"Check!!!" comments about forwards can be useful for ordinal-only symbols
(without name) too even when function arguments are fully detected.
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c
index 35b5ebd..a1c9795 100644
--- a/mingw-w64-tools/gendef/src/gendef.c
+++ b/mingw-w64-tools/gendef/src/gendef.c
@@ -829,7 +829,7 @@
if (exp->retpop != (uint32_t) -1 && !exp->be64 && has_atdecoration() && exp->name[0] == '?')
fprintf(fp," ; has WINAPI (@%u)", (unsigned int) exp->retpop);
- if (exp->retpop != (uint32_t) -1 || (exp->retpop == 0 && exp->be64) || !has_atdecoration ())
+ if (exp->name[0] != 0 && (exp->retpop != (uint32_t) -1 || (exp->retpop == 0 && exp->be64) || !has_atdecoration ()))
{
}
else if (pimpname)