Add character set related __STDC_* definitions.
authorEd Schouten <ed@80386.nl>
Sun, 29 Sep 2013 07:54:52 +0000 (07:54 +0000)
committerEd Schouten <ed@80386.nl>
Sun, 29 Sep 2013 07:54:52 +0000 (07:54 +0000)
commit5ada7a5e9747e03e8c3725b1b4d00e2a9f448e9e
tree21947a600a9fa63629190b106feb6d6cf80df7e4
parent4cb295d3b32cb04215f87948fbf944ee4c31de1b
Add character set related __STDC_* definitions.

Clang uses UTF-16 and UTF-32 for its char16_t's and char32_t's
exclusively. This means that we can define __STDC_UTF_16__ and
__STDC_UTF_32__ unconditionally.

While there, define __STDC_MB_MIGHT_NEQ_WC__ for FreeBSD. FreeBSD's
wchar_t's don't encode characters as ISO-10646; the encoding depends on
the locale used. Because the character set used might not be a superset
of ASCII, we must define __STDC_MB_MIGHT_NEQ_WC__.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c