Remove wxUSE_WCHAR_T checks.
wxWidgets requires wchar_t for some time now; wx/chartype.h has a check to fail complation without it. Simplify code by removing now-dead code for the !wxUSE_WCHAR_T case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -908,7 +908,7 @@ typedef wxUint16 wxWord;
|
||||
#if defined(__MACH__) && !defined(SIZEOF_WCHAR_T)
|
||||
#define SIZEOF_WCHAR_T 4
|
||||
#endif
|
||||
#if wxUSE_WCHAR_T && !defined(SIZEOF_WCHAR_T)
|
||||
#if !defined(SIZEOF_WCHAR_T)
|
||||
/* also assume that sizeof(wchar_t) == 2 (under Unix the most */
|
||||
/* common case is 4 but there configure would have defined */
|
||||
/* SIZEOF_WCHAR_T for us) */
|
||||
@@ -917,10 +917,14 @@ typedef wxUint16 wxWord;
|
||||
Wchar_tMustBeExactly2Bytes);
|
||||
|
||||
#define SIZEOF_WCHAR_T 2
|
||||
#endif /* wxUSE_WCHAR_T */
|
||||
#endif /* !defined(SIZEOF_WCHAR_T) */
|
||||
#endif
|
||||
#endif /* Win/!Win */
|
||||
|
||||
#ifndef SIZEOF_WCHAR_T
|
||||
#error "SIZEOF_WCHAR_T must be defined, but isn't"
|
||||
#endif
|
||||
|
||||
/* also define C99-like sized MIN/MAX constants */
|
||||
#define wxINT8_MIN CHAR_MIN
|
||||
#define wxINT8_MAX CHAR_MAX
|
||||
@@ -1248,14 +1252,14 @@ typedef double wxDouble;
|
||||
|
||||
/* Define wxChar16 and wxChar32 */
|
||||
|
||||
#if wxUSE_WCHAR_T && (!defined(SIZEOF_WCHAR_T) || (SIZEOF_WCHAR_T == 2))
|
||||
#if SIZEOF_WCHAR_T == 2
|
||||
#define wxWCHAR_T_IS_WXCHAR16
|
||||
typedef wchar_t wxChar16;
|
||||
#else
|
||||
typedef wxUint16 wxChar16;
|
||||
#endif
|
||||
|
||||
#if wxUSE_WCHAR_T && defined(SIZEOF_WCHAR_T) && (SIZEOF_WCHAR_T == 4)
|
||||
#if SIZEOF_WCHAR_T == 4
|
||||
#define wxWCHAR_T_IS_WXCHAR32
|
||||
typedef wchar_t wxChar32;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user