History

Define __STDC_HOSTED__ to a sane value

Define __STDC_HOSTED__ to one as the correct values should be either 1 or 0. Since tinycc is hosted, it should be set to 1. Thanks Christian Jullien for the report.

Thomas Preud'homme committed 13 years ago

Commit 3ad64ff1 parent fe64a4d1 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -924,7 +924,7 @@ LIBTCCAPI TCCState *tcc_new(void) · 923 unmodified lines
924924 /* standard defines */
925925 tcc_define_symbol(s, "__STDC__", NULL);
926926 tcc_define_symbol(s, "__STDC_VERSION__", "199901L");
927− tcc_define_symbol(s, "__STDC_HOSTED__", NULL);
927+ tcc_define_symbol(s, "__STDC_HOSTED__", 1);
928928
929929 /* target defines */
930930 #if defined(TCC_TARGET_I386)

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