From 60ceab14533abfe6c7ba5fe482403759d4ec2eb3 Mon Sep 17 00:00:00 2001 From: Petr Skocik Date: Tue, 11 Jun 2019 13:43:24 +0200 Subject: [PATCH] in c11 mode, skip __STDC_ISO_10646__ The macro conflicts (=> redef warnings in a simple hello world) with a definition introduced by glibc headers and it's probably not "necessary" anyway since clang doesn't use it. --- libtcc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtcc.c b/libtcc.c index bcccbd53..90034371 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1830,7 +1830,13 @@ reparse: * wchar_t, has the same value as the short * identifier of that character. */ + #if 0 + /* on Linux, this conflicts with a define introduced by + * /usr/include/stdc-predef.h included by glibc libs; + * clang doesn't define it at all so it's probably not necessary + */ tcc_define_symbol(s, "__STDC_ISO_10646__", "201605L"); + #endif /* * The integer constant 1, intended to indicate * that values of type char16_t are UTF−16