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
This commit is contained in:
David Chisnall 2012-03-02 10:56:04 +00:00
parent e04307e47c
commit 04e5ce2bc1
1 changed files with 1 additions and 0 deletions

View File

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