From 343d65c0739f9d4d6c6345a38a7228bafb1de4df Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sun, 5 Sep 2010 23:16:22 +0000 Subject: [PATCH] Tell the VS headers that char16_t and char32_t are keywords, so yvals.h doesn't try to define them as typedefs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113126 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/InitPreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 0d07192b50..181f671025 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -342,6 +342,10 @@ static void InitializePredefinedMacros(const TargetInfo &TI, Builder.defineMacro("_NATIVE_WCHAR_T_DEFINED"); Builder.append("class type_info;"); } + + if (LangOpts.CPlusPlus0x) { + Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", "1"); + } } if (LangOpts.Optimize)