libtcc: tcc_define_symbol() uses strings, fix segfault
This commit is contained in:
parent
3ad64ffe2e
commit
322743eef8
1 changed files with 1 additions and 1 deletions
2
libtcc.c
2
libtcc.c
|
@ -924,7 +924,7 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||||
/* standard defines */
|
/* standard defines */
|
||||||
tcc_define_symbol(s, "__STDC__", NULL);
|
tcc_define_symbol(s, "__STDC__", NULL);
|
||||||
tcc_define_symbol(s, "__STDC_VERSION__", "199901L");
|
tcc_define_symbol(s, "__STDC_VERSION__", "199901L");
|
||||||
tcc_define_symbol(s, "__STDC_HOSTED__", 1);
|
tcc_define_symbol(s, "__STDC_HOSTED__", "1");
|
||||||
|
|
||||||
/* target defines */
|
/* target defines */
|
||||||
#if defined(TCC_TARGET_I386)
|
#if defined(TCC_TARGET_I386)
|
||||||
|
|
Loading…
Add table
Reference in a new issue