diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 19:44:55 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 19:44:55 +0100 |
| commit | fe64a4d00512740b3cd3a8faa49ba7c908e86944 (patch) | |
| tree | ef5d5956605e79663601c5efd4bcbdfeaabbb769 | |
| parent | 0bdbd49eac6ced7fbf6b5d2f5a13d7e9f3df54db (diff) | |
| download | tinycc-fe64a4d00512740b3cd3a8faa49ba7c908e86944.tar.gz tinycc-fe64a4d00512740b3cd3a8faa49ba7c908e86944.tar.bz2 | |
Define __STDC_HOSTED__
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)"
| -rw-r--r-- | libtcc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -924,6 +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); /* target defines */ #if defined(TCC_TARGET_I386) |
