mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-06-28 08:46:47 +08:00
Check for mbstowcs_l separately
This commit is contained in:
parent
0164b4df1a
commit
41d2a797ab
@ -38,7 +38,7 @@ AC_CHECK_DECLS([program_invocation_short_name], [], [], [[
|
||||
|
||||
dnl Checks for library functions.
|
||||
VL_LIB_READLINE
|
||||
AC_CHECK_FUNCS(strptime fmemopen gmtime_r reallocf wcstombs_l vasprintf vasnprintf)
|
||||
AC_CHECK_FUNCS(strptime fmemopen gmtime_r reallocf wcstombs_l mbstowcs_l vasprintf vasnprintf)
|
||||
|
||||
AM_GCC_ATTRIBUTE_ALIAS
|
||||
|
||||
|
@ -66,7 +66,7 @@ static size_t ascii2unicode(struct _hdbc* dbc, const char *_in, size_t _in_len,
|
||||
size_t count = 0, i;
|
||||
#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)
|
||||
count = _mbstowcs_l(w, _in, _out_count, dbc->locale);
|
||||
#elif defined(HAVE_WCSTOMBS_L)
|
||||
#elif defined(HAVE_MBSTOWCS_L)
|
||||
count = mbstowcs_l(w, _in, _out_count, dbc->locale);
|
||||
#else
|
||||
locale_t oldlocale = uselocale(dbc->locale);
|
||||
|
Loading…
Reference in New Issue
Block a user