Hash :
3215a9f5
Author :
Date :
2019-01-25T00:42:40
mbtowc: Fix compilation error on Android 4.3. * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC. * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set HAVE_MBTOWC. * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared. (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC. * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC. * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC. * doc/posix-functions/mbtowc.texi: Mention the change.
Description:
mbtowc() function: convert multibyte character to wide character.
Files:
lib/mbtowc.c
lib/mbtowc-impl.h
m4/mbtowc.m4
Depends-on:
stdlib
mbrtowc [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
wchar [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
configure.ac:
gl_FUNC_MBTOWC
if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
AC_LIBOBJ([mbtowc])
gl_PREREQ_MBTOWC
fi
gl_STDLIB_MODULE_INDICATOR([mbtowc])
Makefile.am:
Include:
<stdlib.h>
License:
LGPLv2+
Maintainer:
all