From 61f0e0ce221325f5b9125fd766bb26c9825537f3 Mon Sep 17 00:00:00 2001 From: ARATA Mizuki Date: Mon, 24 Apr 2017 15:56:35 +0900 Subject: [PATCH] Add wxUSE_UNICODE_UTF16 macro to represent if the internal representation of wxString is UTF-16 or not The value of this macro is equal to (wxUSE_UNICODE_WCHAR && SIZEOF_WCHAR_T == 2). --- include/wx/chartype.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wx/chartype.h b/include/wx/chartype.h index e8ccb35f05..0e81a3344d 100644 --- a/include/wx/chartype.h +++ b/include/wx/chartype.h @@ -175,6 +175,12 @@ #define wxUSE_UTF8_LOCALE_ONLY 0 #endif +#if wxUSE_UNICODE_WCHAR && SIZEOF_WCHAR_T == 2 + #define wxUSE_UNICODE_UTF16 1 +#else + #define wxUSE_UNICODE_UTF16 0 +#endif + /* define char type used by wxString internal representation: */ #if wxUSE_UNICODE_WCHAR typedef wchar_t wxStringCharType;