rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / fgetws.c
index 2e76b56..195cb43 100644 (file)
@@ -1,8 +1,9 @@
 #include "stdio_impl.h"
+#include <wchar.h>
 
 wint_t __fgetwc_unlocked(FILE *);
 
-wchar_t *fgetws(wchar_t *s, int n, FILE *f)
+wchar_t *fgetws(wchar_t *restrict s, int n, FILE *restrict f)
 {
        wchar_t *p = s;