Remove wxUSE_WCHAR_T, it must always be 1 anyhow
This is not really an option as building requires it to be 1, so don't make it one in setup.h/configure/cmake and just hardcode it as 1 for compatibility. Closes #18558.
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -191,9 +191,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -21,26 +21,9 @@
|
||||
*/
|
||||
#include "wx/types.h"
|
||||
|
||||
/* check whether we have wchar_t and which size it is if we do */
|
||||
#if !defined(wxUSE_WCHAR_T)
|
||||
#if defined(__UNIX__)
|
||||
#if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__)
|
||||
#define wxUSE_WCHAR_T 1
|
||||
#else
|
||||
#define wxUSE_WCHAR_T 0
|
||||
#endif
|
||||
#elif defined(__GNUWIN32__) && !defined(__MINGW32__)
|
||||
#define wxUSE_WCHAR_T 0
|
||||
#else
|
||||
/* add additional compiler checks if this fails */
|
||||
#define wxUSE_WCHAR_T 1
|
||||
#endif
|
||||
#endif /* !defined(wxUSE_WCHAR_T) */
|
||||
|
||||
/* Unicode support requires wchar_t */
|
||||
#if !wxUSE_WCHAR_T
|
||||
#error "wchar_t must be available"
|
||||
#endif /* Unicode */
|
||||
/* This is kept only for backwards compatibility, in case some application code
|
||||
checks for it. It's always 1 and can't be changed. */
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
/*
|
||||
non Unix compilers which do have wchar.h (but not tchar.h which is included
|
||||
@@ -123,11 +106,6 @@
|
||||
#ifdef wxHAVE_TCHAR_SUPPORT
|
||||
/* get TCHAR definition if we've got it */
|
||||
#include <tchar.h>
|
||||
|
||||
/* we surely do have wchar_t if we have TCHAR */
|
||||
#ifndef wxUSE_WCHAR_T
|
||||
#define wxUSE_WCHAR_T 1
|
||||
#endif /* !defined(wxUSE_WCHAR_T) */
|
||||
#endif /* wxHAVE_TCHAR_SUPPORT */
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
@@ -184,7 +184,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -192,9 +192,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -184,7 +184,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -192,9 +192,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -175,14 +175,6 @@
|
||||
# undef wxUSE_DEBUG_NEW_ALWAYS
|
||||
# define wxUSE_DEBUG_NEW_ALWAYS 0
|
||||
|
||||
/* some Cygwin versions don't have wcslen */
|
||||
# if defined(__CYGWIN__) || defined(__CYGWIN32__)
|
||||
# if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
|
||||
# undef wxUSE_WCHAR_T
|
||||
# define wxUSE_WCHAR_T 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* __GNUWIN32__ */
|
||||
|
||||
/* MinGW32 doesn't provide wincred.h defining the API needed by this */
|
||||
|
@@ -184,7 +184,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -192,9 +192,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -190,7 +190,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -198,9 +198,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -180,7 +180,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -188,9 +188,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -183,7 +183,7 @@
|
||||
// Unicode support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// These settings are obsolete: the library is always built in Unicode mode
|
||||
// This option is deprecated: the library should be always built in Unicode mode
|
||||
// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
|
||||
// absolutely necessary -- updating it is strongly recommended as the ANSI mode
|
||||
// will disappear completely in future wxWidgets releases.
|
||||
@@ -191,9 +191,6 @@
|
||||
#define wxUSE_UNICODE 1
|
||||
#endif
|
||||
|
||||
// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
|
||||
#define wxUSE_WCHAR_T 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user