X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f93a29f8e50aa9dc6076a900ad6d316fafddcc3..89064717333f33c6ec477cf25e5692e3f4d6a1dd:/include/wx/chartype.h diff --git a/include/wx/chartype.h b/include/wx/chartype.h index 934e13d1bc..e5ddbf0c9a 100644 --- a/include/wx/chartype.h +++ b/include/wx/chartype.h @@ -190,9 +190,15 @@ /* depending on the platform, Unicode build can either store wxStrings as wchar_t* or UTF-8 encoded char*: */ #if wxUSE_UNICODE - /* for now, all Unicode builds are wchar_t* based: */ - #define wxUSE_UNICODE_WCHAR 1 - #define wxUSE_UNICODE_UTF8 0 + #ifndef wxUSE_UNICODE_UTF8 + #define wxUSE_UNICODE_UTF8 0 + #endif + + #if wxUSE_UNICODE_UTF8 + #define wxUSE_UNICODE_WCHAR 0 + #else + #define wxUSE_UNICODE_WCHAR 1 + #endif #else #define wxUSE_UNICODE_WCHAR 0 #define wxUSE_UNICODE_UTF8 0