mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
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:
parent
18a2ed2936
commit
60ceab1453
6
libtcc.c
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user