From 04e5ce2bc12723bb0a0e0b905c99e0ea36086b84 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 2 Mar 2012 10:56:04 +0000 Subject: [PATCH] Define _WCHAR_T in solaris/wchar.h. This fixes a bug where Solaris 10 headers try to define C++ keywords as typedefs (fixed in Solaris 11). llvm-svn: 151890 --- libcxx/include/support/solaris/wchar.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/include/support/solaris/wchar.h b/libcxx/include/support/solaris/wchar.h index 0af4ea858ebe..05a7241789d3 100644 --- a/libcxx/include/support/solaris/wchar.h +++ b/libcxx/include/support/solaris/wchar.h @@ -16,6 +16,7 @@ #define wcswidth sun_wcswidth #define wcwidth sun_wcwidth #define wctype sun_wctype +#define _WCHAR_T 1 #include_next "wchar.h" #undef iswalpha #undef iswupper