diff options
Diffstat (limited to 'libc/stdio/_wfwrite.c')
| -rw-r--r-- | libc/stdio/_wfwrite.c | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/libc/stdio/_wfwrite.c b/libc/stdio/_wfwrite.c index 792cff604..fb5c6b3ee 100644 --- a/libc/stdio/_wfwrite.c +++ b/libc/stdio/_wfwrite.c @@ -5,8 +5,6 @@   * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.   */ -#define wmemcpy __wmemcpy -  #include "_stdio.h"  #include <wchar.h> @@ -17,9 +15,9 @@  #ifdef __UCLIBC_MJN3_ONLY__  #warning TODO: Fix prototype.  #endif -extern size_t __wcsnrtombs(char *__restrict dst, -			   const wchar_t **__restrict src, -			   size_t NWC, size_t len, mbstate_t *__restrict ps) attribute_hidden; + +libc_hidden_proto(wmemcpy) +libc_hidden_proto(wcsnrtombs)  size_t attribute_hidden _wstdio_fwrite(const wchar_t *__restrict ws, size_t n,  					  register FILE *__restrict stream) @@ -55,7 +53,7 @@ size_t attribute_hidden _wstdio_fwrite(const wchar_t *__restrict ws, size_t n,  		pw = ws;  		while (n > count) { -			r = __wcsnrtombs(buf, &pw, n-count, sizeof(buf), &stream->__state); +			r = wcsnrtombs(buf, &pw, n-count, sizeof(buf), &stream->__state);  			if (r != ((size_t) -1)) { /* No encoding errors */  				if (!r) {  					++r;		  /* 0 is returned when nul is reached. */  | 
