X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/817270659e986de1b243586d8eb6ad3a76c87480..47fe7ff3821c632b490b16da6b5113f127905a23:/include/wx/chartype.h diff --git a/include/wx/chartype.h b/include/wx/chartype.h index e5ddbf0c9a..5162b91daf 100644 --- a/include/wx/chartype.h +++ b/include/wx/chartype.h @@ -190,6 +190,14 @@ /* depending on the platform, Unicode build can either store wxStrings as wchar_t* or UTF-8 encoded char*: */ #if wxUSE_UNICODE + // FIXME-UTF8: what would be better place for this? + #if defined(wxUSE_UTF8_LOCALE_ONLY) && !defined(wxUSE_UNICODE_UTF8) + #error "wxUSE_UTF8_LOCALE_ONLY only makes sense with wxUSE_UNICODE_UTF8" + #endif + #ifndef wxUSE_UTF8_LOCALE_ONLY + #define wxUSE_UTF8_LOCALE_ONLY 0 + #endif + #ifndef wxUSE_UNICODE_UTF8 #define wxUSE_UNICODE_UTF8 0 #endif @@ -202,6 +210,7 @@ #else #define wxUSE_UNICODE_WCHAR 0 #define wxUSE_UNICODE_UTF8 0 + #define wxUSE_UTF8_LOCALE_ONLY 0 #endif /* define char type used by wxString internal representation: */