History

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.

Petr Skocik committed 7 years ago

Commit 60ceab11 parent 18a2ed21 file · +6 −0Browse files

Unified · Split

libtcc.c+6−0
@@ -1830,7 +1830,13 @@ reparse: · 1829 unmodified lines
1830 * wchar_t, has the same value as the short1830 * wchar_t, has the same value as the short
1831 * identifier of that character.1831 * identifier of that character.
1832 */1832 */
1833 #if 0
1834 /* on Linux, this conflicts with a define introduced by
1835 * /usr/include/stdc-predef.h included by glibc libs;
1836 * clang doesn't define it at all so it's probably not necessary
1837 */
1833 tcc_define_symbol(s, "__STDC_ISO_10646__", "201605L");1838 tcc_define_symbol(s, "__STDC_ISO_10646__", "201605L");
1839 #endif
1834 /*1840 /*
1835 * The integer constant 1, intended to indicate1841 * The integer constant 1, intended to indicate
1836 * that values of type char16_t are UTF−161842 * that values of type char16_t are UTF−16

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t