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 | /* standard defines */ | 924 | /* standard defines */ |
| 925 | tcc_define_symbol(s, "__STDC__", NULL); | 925 | tcc_define_symbol(s, "__STDC__", NULL); |
| 926 | tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); | 926 | tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); |
| 927 | tcc_define_symbol(s, "__STDC_HOSTED__", NULL); | ||
| 927 | 928 | ||
| 928 | /* target defines */ | 929 | /* target defines */ |
| 929 | #if defined(TCC_TARGET_I386) | 930 | #if defined(TCC_TARGET_I386) |