library build even without wcslen()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-05-11 11:50:40 +00:00
parent d8f2439ceb
commit 5de9bc8049
3 changed files with 509 additions and 627 deletions

1121
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -464,11 +464,16 @@ dnl #######################
dnl # check for functions #
dnl #######################
WCHAR_LINK=
dnl check for wcslen
AC_CHECK_LIB(c,wcslen,,
AC_CHECK_LIB(w,wcslen,
WCHAR_LINK="-lw" ,AC_MSG_ERROR("Cannot find wcslen function.")))
AC_CHECK_LIB(c, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_LINK=""
], [
AC_CHECK_LIB(w, wcslen, [
AC_DEFINE(HAVE_WCSLEN)
WCHAR_LINK="-lw"
])
])
AC_SUBST(WCHAR_LINK)
dnl check for vprintf/vsprintf() which are GNU extensions

View File

@ -113,7 +113,7 @@ bool WXDLLEXPORT wxOKlibc()
return TRUE;
}
#ifdef wxNEED_WCSLEN
#ifndef HAVE_WCSLEN
size_t WXDLLEXPORT wcslen(const wchar_t *s)
{
size_t len;