don't redefine __WCHAR_TYPE__ when using Sun CC if it's already defined (as is the case at least under Linux)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-06-22 14:22:05 +00:00
parent be3dcfb31a
commit b69ae27a05

View File

@ -154,8 +154,8 @@
/* Sun's SunPro compiler supports the wchar_t type and wide character */
/* functions, but does not define __WCHAR_TYPE__. Define it here to */
/* allow unicode enabled builds. */
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
#define __WCHAR_TYPE__ wxchar_t
#if (defined(__SUNPRO_CC) || defined(__SUNPRO_C)) && !defined(__WCHAR_TYPE__)
#define __WCHAR_TYPE__ wxchar_t
#endif
/* GNU libc has __WCHAR_TYPE__ which requires special treatment, see */