> This patch seems unnecessary as tcc_define_symbol with a third argument NULL > is > equivalent as setting it to 1 (#define FOO is the same as #define FOO 1)
I trying to be exactly the same as gcc. And this macros in gcc are as "1" not "" 2015-01-04 4:03 GMT+03:00, Thomas Preud'homme <robo...@celest.fr>: > Le vendredi 2 janvier 2015, 15:53:39 Sergey Korshunoff a écrit : >> A values for >> __STDC__, __STDC_VERSION__, __STDC_HOSTED__ >> on the Linux are defined as in gcc. > > Hi Sergey, > > This patch seems unnecessary as tcc_define_symbol with a third argument NULL > is > equivalent as setting it to 1 (#define FOO is the same as #define FOO 1). > > See for yourself: > > % cat ~/foo.c > int foo = __STDC__; > % tcc -E ~/foo.c > # 1 "/home/foo/foo.c" > int foo = 1; > > Best regards, > > Thomas > _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel