* grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
* grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
This commit is contained in:
parent
8ee1101a97
commit
b4bf7c3b20
3 changed files with 9 additions and 4 deletions
|
@ -28,8 +28,6 @@ enum
|
|||
WEOF = -1
|
||||
};
|
||||
|
||||
#define MB_LEN_MAX 4
|
||||
|
||||
/* UCS-4. */
|
||||
typedef grub_int32_t wchar_t;
|
||||
|
||||
|
@ -38,6 +36,10 @@ typedef struct mbstate {
|
|||
int count;
|
||||
} mbstate_t;
|
||||
|
||||
/* UTF-8. */
|
||||
#define MB_CUR_MAX 4
|
||||
#define MB_LEN_MAX 4
|
||||
|
||||
static inline size_t
|
||||
mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue