From: Thomas Preud'homme Date: Mon, 14 Jan 2013 16:21:06 +0000 (+0100) Subject: Revert "pe: fix tcc not linking to user32 and gdi32" X-Git-Tag: release_0_9_26~70 X-Git-Url: https://repo.or.cz/w/tinycc.git/commitdiff_plain/60a3ff5f2cdc1248cce683ba11db420bc2cb2311 Revert "pe: fix tcc not linking to user32 and gdi32" This reverts commit 943574aba54713ca4a17fe33aadde5abee233b53. The empty string in "libs" was intended behavior, as can be seen from the "if (0 == *p)" below. --- diff --git a/tccpe.c b/tccpe.c index a956da46..b846c115 100644 --- a/tccpe.c +++ b/tccpe.c @@ -1762,7 +1762,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe) if (0 == s1->nostdlib) { static const char *libs[] = { - "tcc1", "msvcrt", "kernel32", "user32", "gdi32", NULL + "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL }; const char **pp, *p; for (pp = libs; 0 != (p = *pp); ++pp) {