Revert "pe: fix tcc not linking to user32 and gdi32"

This reverts commit 943574aba5.
The empty string in "libs" was intended behavior, as can be seen from
the "if (0 == *p)" below.
This commit is contained in:
Thomas Preud'homme 2013-01-14 17:21:06 +01:00
parent 5e7954b408
commit 60a3ff5f2c

View file

@ -1762,7 +1762,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe)
if (0 == s1->nostdlib) { if (0 == s1->nostdlib) {
static const char *libs[] = { static const char *libs[] = {
"tcc1", "msvcrt", "kernel32", "user32", "gdi32", NULL "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL
}; };
const char **pp, *p; const char **pp, *p;
for (pp = libs; 0 != (p = *pp); ++pp) { for (pp = libs; 0 != (p = *pp); ++pp) {