diff --git a/headers/posix/wchar.h b/headers/posix/wchar.h index 3cc6fc1063..25c340ccc9 100644 --- a/headers/posix/wchar.h +++ b/headers/posix/wchar.h @@ -9,6 +9,14 @@ #include +#define _WINT_T +typedef unsigned int wint_t; + +typedef struct { + int __count; + wint_t __value; +} mbstate_t; + #include int mbsinit(const mbstate_t *); diff --git a/headers/posix/wchar_t.h b/headers/posix/wchar_t.h index 37fee5ad18..5db297e8f1 100644 --- a/headers/posix/wchar_t.h +++ b/headers/posix/wchar_t.h @@ -11,13 +11,5 @@ typedef unsigned short wchar_t; #endif -#define _WINT_T -typedef unsigned int wint_t; - -typedef struct { - int __count; - wint_t __value; -} mbstate_t; - #endif /* _WCHAR_T_H */ diff --git a/src/kernel/libroot/posix/glibc/wcsmbs/wchar.h b/src/kernel/libroot/posix/glibc/wcsmbs/wchar.h index 1043e551d2..ff37f1ee6d 100644 --- a/src/kernel/libroot/posix/glibc/wcsmbs/wchar.h +++ b/src/kernel/libroot/posix/glibc/wcsmbs/wchar.h @@ -36,7 +36,7 @@ # ifdef __USE_UNIX98 # define __need_FILE # endif -# include +# include /* Get va_list definition. */ # define __need___va_list # include @@ -89,7 +89,7 @@ typedef struct __BEGIN_NAMESPACE_C99 /* Public type. */ -//typedef __mbstate_t mbstate_t; +typedef __mbstate_t mbstate_t; __END_NAMESPACE_C99 #ifdef __USE_GNU __USING_NAMESPACE_C99(mbstate_t)