Quoting Michael Matz on tinycc-devel: "__STDC_HOSTED__ : not set (incorrectly, it should probably be set to 1 given that tcc assumes a normal main() and that the rest of the provided facilities is provided by the C library not under tcc control)"
Unified · Split
| @@ -924,6 +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 | 928 | |
| 928 | 929 | /* target defines */ |
| 929 | 930 | #if defined(TCC_TARGET_I386) |