use built-in wcslen instead of disabling wide character support for Darwin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2002-05-13 05:41:51 +00:00
parent 62f17a1864
commit a1ea505561
2 changed files with 204 additions and 192 deletions

387
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2780,9 +2780,14 @@ if test "$WCHAR_OK" = 1; then
dnl also try to use wcsrtombs instead of wcstombs which is buggy in old GNU
dnl libc versions if possible
AC_CHECK_FUNCS(wcsrtombs)
else
dnl use built-in wcslen for Darwin (what about other BSD based systems?)
if test "$USE_DARWIN" = 1; then
AC_DEFINE(wxUSE_WCHAR_T)
else
AC_MSG_WARN([Wide character support is unavailable])
fi
fi
dnl check for vprintf/vsprintf() which are GNU extensions
AC_FUNC_VPRINTF