]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/buffer.h
fixed wxUniCharRef::IsAscii() definition
[wxWidgets.git] / include / wx / buffer.h
index 59a7ad6c35de5e5dd713f2848bfe9a22ede9de02..81184c7705c3fbcd7e7d86b6295a72c7e7853235 100644 (file)
@@ -168,8 +168,13 @@ typedef wxWritableCharTypeBuffer<wchar_t> wxWritableWCharBuffer;
 
     #define wxMB2WXbuf wxWCharBuffer
     #define wxWX2MBbuf wxCharBuffer
-    #define wxWC2WXbuf wxChar*
-    #define wxWX2WCbuf wxChar*
+    #if wxUSE_UNICODE_WCHAR
+        #define wxWC2WXbuf wxChar*
+        #define wxWX2WCbuf wxChar*
+    #elif wxUSE_UNICODE_UTF8
+        #define wxWC2WXbuf wxWCharBuffer
+        #define wxWX2WCbuf wxWCharBuffer
+    #endif
 #else // ANSI
     #define wxWxCharBuffer wxCharBuffer