Skip to content

Commit

Permalink
Add wxUSE_UNICODE_UTF16 macro to represent if the internal representa…
Browse files Browse the repository at this point in the history
…tion of wxString is UTF-16 or not

The value of this macro is equal to (wxUSE_UNICODE_WCHAR && SIZEOF_WCHAR_T == 2).
  • Loading branch information
minoki committed May 1, 2017
1 parent 365f8e6 commit 61f0e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/wx/chartype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61f0e0c

Please sign in to comment.