Generated def file has calling convention decoration only for i386 PE files which are detected by the has_atdecoration() function. --- mingw-w64-tools/gendef/src/gendef.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c index c66b28e05bdf..c25734c4c4e5 100644 --- a/mingw-w64-tools/gendef/src/gendef.c +++ b/mingw-w64-tools/gendef/src/gendef.c @@ -728,8 +728,11 @@ dump_def (void) fprintf(stderr," * failed to create %s ...\n",fnoutput); return; } - fprintf (fp,";\n; Definition file of %s\n; Automatic generated by gendef %s\n; written by Kai Tietz 2008\n; The def file has to be processed by --kill-at (-k) option of dlltool or ld\n;\n", + fprintf (fp,";\n; Definition file of %s\n; Automatic generated by gendef %s\n; written by Kai Tietz 2008\n", fndllname, VERSION); + if (has_atdecoration ()) + fprintf (fp,"; The def file has to be processed by --kill-at (-k) option of dlltool or ld\n"); + fprintf (fp,";\n"); fprintf (fp,"LIBRARY \"%s\"\nEXPORTS\n",fndllname); while ((exp = gExp) != NULL) { -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public