diff options
author | Bruno Haible <bruno@clisp.org> | 2009-05-01 18:01:52 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-05-01 18:01:52 +0200 |
commit | eea4c1569af3cfd540e449fce0997fc94a096325 (patch) | |
tree | 6ec762a497faf15569880331d1464ab8650fa916 /lib/wchar.in.h | |
parent | 70a602fdacf4f7303c4b5cb14a9a02b45ae2da86 (diff) | |
download | gnulib-eea4c1569af3cfd540e449fce0997fc94a096325.tar.gz |
Replace wcrtomb, wcsrtombs, wcsnrtombs if mbstate_t has to be replaced.
Diffstat (limited to 'lib/wchar.in.h')
-rw-r--r-- | lib/wchar.in.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 3c6cd7b891..ddf8b75352 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -264,7 +264,11 @@ extern size_t wcsrtombs (char *dest, const wchar_t **srcp, size_t len, mbstate_t /* Convert a wide string to a string. */ #if @GNULIB_WCSNRTOMBS@ -# if !@HAVE_WCSNRTOMBS@ +# if @REPLACE_WCSNRTOMBS@ +# undef wcsnrtombs +# define wcsnrtombs rpl_wcsnrtombs +# endif +# if !@HAVE_WCSNRTOMBS@ || @REPLACE_WCSNRTOMBS@ extern size_t wcsnrtombs (char *dest, const wchar_t **srcp, size_t srclen, size_t len, mbstate_t *ps); # endif #elif defined GNULIB_POSIXCHECK |