From 322743eef8b991fa89e1852af48e8b543cb8435a Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 18 Feb 2013 08:32:03 +0800 Subject: [PATCH] libtcc: tcc_define_symbol() uses strings, fix segfault --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index c500e45b..1fdee49f 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__", 1); + tcc_define_symbol(s, "__STDC_HOSTED__", "1"); /* target defines */ #if defined(TCC_TARGET_I386)