diff options
Diffstat (limited to 'lib/libc/locale/btowc.c')
-rw-r--r-- | lib/libc/locale/btowc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/btowc.c b/lib/libc/locale/btowc.c index 34439b8..2c4d493 100644 --- a/lib/libc/locale/btowc.c +++ b/lib/libc/locale/btowc.c @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <wchar.h> +#include "mblocal.h" wint_t btowc(int c) @@ -46,7 +47,7 @@ btowc(int c) * counts. */ cc = (char)c; - if (mbrtowc(&wc, &cc, 1, &mbs) > 1) + if (__mbrtowc(&wc, &cc, 1, &mbs) > 1) return (WEOF); return (wc); } |