view modules/mbtowc @ 40133:11b97647fb11

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.
author Bruno Haible <bruno@clisp.org>
date Fri, 25 Jan 2019 00:42:40 +0100
parents 1f14c6dd175d
children
line wrap: on
line source

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