mbtowc: Fix compilation error on Android 4.3.
commit3215a9f5672562b3698ad231f57857ab11b355ec
authorBruno Haible <bruno@clisp.org>
Thu, 24 Jan 2019 23:42:40 +0000 (25 00:42 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 25 Jan 2019 01:14:28 +0000 (25 02:14 +0100)
treef1c94535c9375414c287e30e9af6a6e30bb882a1
parentea9062bead9272a5e70c70c19429c9ee4bec35a5
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.
ChangeLog
doc/posix-functions/mbtowc.texi
lib/stdlib.in.h
m4/mbtowc.m4
m4/stdlib_h.m4
modules/mbtowc
modules/stdlib