From 60a3ff5f2cdc1248cce683ba11db420bc2cb2311 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 14 Jan 2013 17:21:06 +0100 Subject: [PATCH] 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. --- tccpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {