diff options
Diffstat (limited to 'lib')
-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 62844af72b..c4269664cd 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -167,7 +167,11 @@ extern size_t mbrlen (const char *s, size_t n, mbstate_t *ps); /* Convert a string to a wide string. */ #if @GNULIB_MBSRTOWCS@ -# if !@HAVE_MBSRTOWCS@ +# if @REPLACE_MBSRTOWCS@ +# undef mbsrtowcs +# define mbsrtowcs rpl_mbsrtowcs +# endif +# if !@HAVE_MBSRTOWCS@ || @REPLACE_MBSRTOWCS@ extern size_t mbsrtowcs (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps); # endif #elif defined GNULIB_POSIXCHECK |