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
18301830 * wchar_t, has the same value as the short
18311831 * identifier of that character.
18321832 */
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+ */
18331838 tcc_define_symbol(s, "__STDC_ISO_10646__", "201605L");
1839+ #endif
18341840 /*
18351841 * The integer constant 1, intended to indicate
18361842 * 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