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:
@@ -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 */
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user