1 commit 3e3ae40f053b22fbb9bef50067d6edad4c358c4c
2 Author: Mirko Vogt <dev@nanl.de>
3 Date: Tue May 24 14:36:42 2011 +0200
5 use 'fputws_unlocked(S,F)' instead of 'fputws(S,F)'
7 this eliminates a source of reproduceable freezes
9 --- a/libc/stdio/_vfprintf.c
10 +++ b/libc/stdio/_vfprintf.c
11 @@ -1229,7 +1229,7 @@ static size_t _fp_out_narrow(FILE *fp, i
13 #define _PPFS_init _ppwfs_init
15 -#define OUTPUT(F,S) fputws(S,F)
16 +#define OUTPUT(F,S) fputws_unlocked(S,F)
17 /* TODO: #define OUTPUT(F,S) _wstdio_fwrite((S),wcslen(S),(F)) */
18 #define _outnwcs(stream, wstring, len) _wstdio_fwrite((const wchar_t *)(wstring), len, stream)
19 #define FP_OUT _fp_out_wide