From b56a4ada3300ab23fd3c7559c0c40129618ca5f0 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). git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@151890 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/support/solaris/wchar.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/support/solaris/wchar.h b/include/support/solaris/wchar.h index 0af4ea85..05a72417 100644 --- a/include/support/solaris/wchar.h +++ b/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