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:
parent
d8f2439ceb
commit
5de9bc8049
13
configure.in
13
configure.in
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user