History

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.

Thomas Preud'homme committed 13 years ago

Commit 60a3ff51 parent 5e7954b1 file · +1 −1Browse files

Unified · Split

tccpe.c+1−1
@@ -1762,7 +1762,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe) · 1761 unmodified lines
1762 1762
1763 if (0 == s1->nostdlib) {1763 if (0 == s1->nostdlib) {
1764 static const char *libs[] = {1764 static const char *libs[] = {
1765 "tcc1", "msvcrt", "kernel32", "user32", "gdi32", NULL1765 "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL
1766 };1766 };
1767 const char **pp, *p;1767 const char **pp, *p;
1768 for (pp = libs; 0 != (p = *pp); ++pp) {1768 for (pp = libs; 0 != (p = *pp); ++pp) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t