Moved mbstate to wchar.h
Restored glibc/wcsmbs/wchar.h git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,14 @@
|
||||
|
||||
#include <wchar_t.h>
|
||||
|
||||
#define _WINT_T
|
||||
typedef unsigned int wint_t;
|
||||
|
||||
typedef struct {
|
||||
int __count;
|
||||
wint_t __value;
|
||||
} mbstate_t;
|
||||
|
||||
#include <size_t.h>
|
||||
|
||||
int mbsinit(const mbstate_t *);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# ifdef __USE_UNIX98
|
||||
# define __need_FILE
|
||||
# endif
|
||||
# include <stdio.h>
|
||||
# include <libio/stdio.h>
|
||||
/* Get va_list definition. */
|
||||
# define __need___va_list
|
||||
# include <stdarg.h>
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user