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.
This commit is contained in:
Petr Skocik 2019-06-11 13:43:24 +02:00
parent 18a2ed2936
commit 60ceab1453

View File

@ -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 UTF16