]> git.saurik.com Git - wxWidgets.git/commitdiff
don't redefine __WCHAR_TYPE__ when using Sun CC if it's already defined (as is the...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Jun 2007 14:22:05 +0000 (14:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Jun 2007 14:22:05 +0000 (14:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chartype.h

index 5162b91dafa8ba9d5a95928c21187e7b92125371..a9e2dee8928bdb1e1fbc0984b82ef81fa98e181c 100644 (file)
     /* 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 */