]> granicus.if.org Git - clang/commitdiff
Tell the VS headers that char16_t and char32_t are keywords, so yvals.h doesn't try...
authorSteven Watanabe <steven@providere-consulting.com>
Sun, 5 Sep 2010 23:16:22 +0000 (23:16 +0000)
committerSteven Watanabe <steven@providere-consulting.com>
Sun, 5 Sep 2010 23:16:22 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113126 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp

index 0d07192b50e542fa6710d27b2ebf55c5b26588fa..181f671025691b032aadb0c029c04510eda92160 100644 (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)