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.
Unified · Split
| @@ -924,7 +924,7 @@ LIBTCCAPI TCCState *tcc_new(void) · 923 unmodified lines | ||
| 924 | 924 | /* standard defines */ |
| 925 | 925 | tcc_define_symbol(s, "__STDC__", NULL); |
| 926 | 926 | tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); |
| 927 | − tcc_define_symbol(s, "__STDC_HOSTED__", NULL); | |
| 927 | + tcc_define_symbol(s, "__STDC_HOSTED__", 1); | |
| 928 | 928 | |
| 929 | 929 | /* target defines */ |
| 930 | 930 | #if defined(TCC_TARGET_I386) |