From: Thomas Preud'homme Date: Sun, 17 Feb 2013 21:13:41 +0000 (+0100) Subject: Define __STDC_HOSTED__ to a sane value X-Git-Tag: release_0_9_27~1111 X-Git-Url: https://repo.or.cz/w/tinycc.git/commitdiff_plain/3ad64ffe2e914e89ecfc1eabac2e42abf65c26ff 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. --- diff --git a/libtcc.c b/libtcc.c index b138fd93..c500e45b 100644 --- a/libtcc.c +++ b/libtcc.c @@ -924,7 +924,7 @@ LIBTCCAPI TCCState *tcc_new(void) /* standard defines */ tcc_define_symbol(s, "__STDC__", NULL); tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); - tcc_define_symbol(s, "__STDC_HOSTED__", NULL); + tcc_define_symbol(s, "__STDC_HOSTED__", 1); /* target defines */ #if defined(TCC_TARGET_I386)