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>
|
#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>
|
#include <size_t.h>
|
||||||
|
|
||||||
int mbsinit(const mbstate_t *);
|
int mbsinit(const mbstate_t *);
|
||||||
|
|||||||
@@ -11,13 +11,5 @@
|
|||||||
typedef unsigned short wchar_t;
|
typedef unsigned short wchar_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _WINT_T
|
|
||||||
typedef unsigned int wint_t;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int __count;
|
|
||||||
wint_t __value;
|
|
||||||
} mbstate_t;
|
|
||||||
|
|
||||||
#endif /* _WCHAR_T_H */
|
#endif /* _WCHAR_T_H */
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
# ifdef __USE_UNIX98
|
# ifdef __USE_UNIX98
|
||||||
# define __need_FILE
|
# define __need_FILE
|
||||||
# endif
|
# endif
|
||||||
# include <stdio.h>
|
# include <libio/stdio.h>
|
||||||
/* Get va_list definition. */
|
/* Get va_list definition. */
|
||||||
# define __need___va_list
|
# define __need___va_list
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
@@ -89,7 +89,7 @@ typedef struct
|
|||||||
|
|
||||||
__BEGIN_NAMESPACE_C99
|
__BEGIN_NAMESPACE_C99
|
||||||
/* Public type. */
|
/* Public type. */
|
||||||
//typedef __mbstate_t mbstate_t;
|
typedef __mbstate_t mbstate_t;
|
||||||
__END_NAMESPACE_C99
|
__END_NAMESPACE_C99
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_GNU
|
||||||
__USING_NAMESPACE_C99(mbstate_t)
|
__USING_NAMESPACE_C99(mbstate_t)
|
||||||
|
|||||||
Reference in New Issue
Block a user