Tell the VS headers that char16_t and char32_t are keywords, so yvals.h doesn't try to define them as typedefs.

llvm-svn: 113126
This commit is contained in:
Steven Watanabe 2010-09-05 23:16:22 +00:00
parent f0b0497343
commit 2ba828f36d
1 changed files with 4 additions and 0 deletions

View File

@ -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)