]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1325207 ] Fixes unicode build using Solaris with Sun's SunPro compiler
authorJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jan 2006 10:06:34 +0000 (10:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jan 2006 10:06:34 +0000 (10:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index 091886694238f70fdee1abdace8d261358236ba8..aa2ff4a0a276936660327c0b164507a440189c62 100644 (file)
     /*     char wchar_t is always unsigned) and (b) was how the previous */
     /*     definitions worked so keep it like this */
 
+    /* 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
+    #endif
+
     /* GNU libc has __WCHAR_TYPE__ which requires special treatment, see */
     /* comment below */
     #if !defined(__WCHAR_TYPE__) || \