fix mismatched signatures for strtod_l family
[musl] / src / stdio / open_wmemstream.c
index cb693ea..ed1b561 100644 (file)
@@ -3,6 +3,8 @@
 #include <errno.h>
 #include <limits.h>
 #include <string.h>
+#include <stdlib.h>
+#include "libc.h"
 
 struct cookie {
        wchar_t **bufp;
@@ -94,5 +96,7 @@ FILE *open_wmemstream(wchar_t **bufp, size_t *sizep)
 
        if (!libc.threaded) f->f.lock = -1;
 
+       fwide(&f->f, 1);
+
        return __ofl_add(&f->f);
 }