mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-34448: Improve output of usable wchar_t check (GH-8846)
This commit is contained in:
parent
498845368f
commit
3738fadc67
2 changed files with 9 additions and 7 deletions
|
@ -4555,19 +4555,19 @@ then
|
|||
AC_MSG_RESULT($ac_cv_wchar_t_signed)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether wchar_t is usable)
|
||||
# wchar_t is only usable if it maps to an unsigned type
|
||||
if test "$ac_cv_sizeof_wchar_t" -ge 2 \
|
||||
-a "$ac_cv_wchar_t_signed" = "no"
|
||||
then
|
||||
HAVE_USABLE_WCHAR_T="yes"
|
||||
AC_DEFINE(HAVE_USABLE_WCHAR_T, 1,
|
||||
[Define if you have a useable wchar_t type defined in wchar.h; useable
|
||||
means wchar_t must be an unsigned type with at least 16 bits. (see
|
||||
Include/unicodeobject.h).])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
HAVE_USABLE_WCHAR_T="no usable wchar_t found"
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
AC_MSG_RESULT($HAVE_USABLE_WCHAR_T)
|
||||
|
||||
# check for endianness
|
||||
AC_C_BIGENDIAN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue