AMDG

The attached patch predefines the macro that yvals.h uses
to determine whether it should create typedefs for
char16_t and char32_t.

In Christ,
Steven Watanabe

Index: tools/clang/lib/Frontend/InitPreprocessor.cpp
===================================================================
--- tools/clang/lib/Frontend/InitPreprocessor.cpp	(revision 113069)
+++ tools/clang/lib/Frontend/InitPreprocessor.cpp	(working copy)
@@ -342,6 +342,10 @@
       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)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to